diff --git a/docs/Gemfile b/docs/Gemfile index 0a0aabfac..4fb7a1418 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -2,3 +2,5 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins gem 'jekyll-redirect-from' gem 'jekyll-octicons' +gem 'jekyll-avatar' + diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index fce3d3399..5a77670b4 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -248,6 +248,7 @@ PLATFORMS DEPENDENCIES github-pages + jekyll-avatar jekyll-octicons jekyll-redirect-from diff --git a/docs/_config.yml b/docs/_config.yml index 26aa1fe5e..60a6adedf 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,3 +1,5 @@ theme: jekyll-theme-primer gems: - jekyll-octicons + - jekyll-sitemap + - jekyll-avatar diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 7ada8d70e..df8bcabd3 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -7,54 +7,6 @@ {% seo %} - -
diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss new file mode 100644 index 000000000..5ca303152 --- /dev/null +++ b/docs/assets/css/style.scss @@ -0,0 +1,51 @@ +--- +--- + +@import "{{ site.theme }}"; + +.btn { + -moz-box-shadow:inset 0px 1px 0px 0px #e184f3; + -webkit-box-shadow:inset 0px 1px 0px 0px #e184f3; + box-shadow:inset 0px 1px 0px 0px #e184f3; + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c123de), color-stop(1, #a20dbd)); + background:-moz-linear-gradient(top, #c123de 5%, #a20dbd 100%); + background:-webkit-linear-gradient(top, #c123de 5%, #a20dbd 100%); + background:-o-linear-gradient(top, #c123de 5%, #a20dbd 100%); + background:-ms-linear-gradient(top, #c123de 5%, #a20dbd 100%); + background:linear-gradient(to bottom, #c123de 5%, #a20dbd 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#c123de', endColorstr='#a20dbd',GradientType=0); + background-color:#c123de; + -moz-border-radius:6px; + -webkit-border-radius:6px; + border-radius:6px; + border:1px solid #a511c0; + display:inline-block; + cursor:pointer; + color:#ffffff; + font-weight:bold; + padding:0.25em 1em; + text-decoration:none; + text-shadow:0px 1px 0px #9b14b3; +} +.btn:hover { + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #a20dbd), color-stop(1, #c123de)); + background:-moz-linear-gradient(top, #a20dbd 5%, #c123de 100%); + background:-webkit-linear-gradient(top, #a20dbd 5%, #c123de 100%); + background:-o-linear-gradient(top, #a20dbd 5%, #c123de 100%); + background:-ms-linear-gradient(top, #a20dbd 5%, #c123de 100%); + background:linear-gradient(to bottom, #a20dbd 5%, #c123de 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a20dbd', endColorstr='#c123de',GradientType=0); + background-color:#a20dbd; +} +.btn:active { + position:relative; + top:1px; +} +svg.octicon { + margin-right: 0.25em; +} +a.btn svg { + fill: white; +} + + diff --git a/docs/index.markdown b/docs/index.markdown index f815c7236..5a497d45c 100644 --- a/docs/index.markdown +++ b/docs/index.markdown @@ -4,21 +4,7 @@ title: Wez's Terminal *A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust* -
- -{% for asset in site.github.latest_release.assets %} - {% if asset.name contains 'azure' %} - {% if asset.name contains 'windows' %} - {% octicon cloud-download %} Download for Windows - {% endif %} - {% if asset.name contains 'macos' %} - {% octicon cloud-download %} Download for macOS - {% endif %} - {% endif %} -{% endfor %} - - Linux and other installation instructions -
+{% octicon cloud-download %} Download ## Features diff --git a/docs/installation.markdown b/docs/installation.markdown index b03834fbc..d832a9ef9 100644 --- a/docs/installation.markdown +++ b/docs/installation.markdown @@ -8,6 +8,7 @@ Windows 10 or later is required to run WezTerm. {% for asset in site.github.latest_release.assets %} {% if asset.name contains 'azure' and asset.name contains 'windows' %} +{% octicon cloud-download %} Download for Windows 1. Download {{ asset.name }} 2. Extract the zipfile and double-click `wezterm.exe` to run the UI 3. Configuration instructions can be [found here](configuration.html) @@ -21,6 +22,7 @@ versions of macOS, but that has not been tested. {% for asset in site.github.latest_release.assets %} {% if asset.name contains 'azure' and asset.name contains 'macos' %} +{% octicon cloud-download %} Download for macOS 1. Download {{ asset.name }} 2. Extract the zipfile and drag the `WezTerm.app` bundle to your `Applications` folder 3. First time around, you may need to right click and select `Open` to allow launching @@ -38,6 +40,7 @@ debian style systems. {% for asset in site.github.latest_release.assets %} {% if asset.name contains '.deb' %} +{% octicon cloud-download %} Download for Ubuntu * curl -LO {{ asset.browser_download_url }} * `sudo dpkg -i {{ asset.name }}` * The package installs `/usr/bin/wezterm`