1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

docs: avoid occasional page build failure

Sometimes we race with the nightly build while it is deleting
and uploading artifacts.

Since they have stable names, just hard code those in the the
markdown.
This commit is contained in:
Wez Furlong 2020-01-11 09:49:17 -08:00
parent 151180ba28
commit d199178dd7
2 changed files with 4 additions and 9 deletions

View File

@ -63,11 +63,6 @@ def load_release_info():
subst["{{ %s_stable_asset }}" % kind] = name subst["{{ %s_stable_asset }}" % kind] = name
subst["{{ %s_stable_dir }}" % kind] = dir subst["{{ %s_stable_dir }}" % kind] = dir
for (kind, (url, name, dir)) in nightly.items():
subst["{{ %s_pre }}" % kind] = url
subst["{{ %s_pre_asset }}" % kind] = name
subst["{{ %s_pre_dir }}" % kind] = dir
with open("docs/installation.markdown", "r") as input: with open("docs/installation.markdown", "r") as input:
with open("docs/installation.md", "w") as output: with open("docs/installation.md", "w") as output:
for line in input: for line in input:

View File

@ -4,7 +4,7 @@
Windows 10 or later is required to run WezTerm. Windows 10 or later is required to run WezTerm.
<a href="{{ windows_stable }}" class="btn">Download for Windows</a> <a href="{{ windows_stable }}" class="btn">Download for Windows</a>
<a href="{{ windows_pre }}" class="btn">Nightly for Windows</a> <a href="https://github.com/wez/wezterm/releases/download/nightly/WezTerm-windows-nightly.zip" class="btn">Nightly for Windows</a>
1. Download <a href="{{ windows_stable }}">Release</a> 1. Download <a href="{{ windows_stable }}">Release</a>
2. Extract the zipfile and double-click `wezterm.exe` to run the UI 2. Extract the zipfile and double-click `wezterm.exe` to run the UI
3. Configuration instructions can be [found here](config/index.html) 3. Configuration instructions can be [found here](config/index.html)
@ -15,7 +15,7 @@ The CI system builds the package on macOS Mojave (10.14). It may run on earlier
versions of macOS, but that has not been tested. versions of macOS, but that has not been tested.
<a href="{{ macos_stable }}" class="btn">Download for macOS</a> <a href="{{ macos_stable }}" class="btn">Download for macOS</a>
<a href="{{ macos_pre }}" class="btn">Nightly for macOS</a> <a href="https://github.com/wez/wezterm/releases/download/nightly/WezTerm-macos-nightly.zip" class="btn">Nightly for macOS</a>
1. Download <a href="{{ macos_stable }}">Release</a> 1. Download <a href="{{ macos_stable }}">Release</a>
2. Extract the zipfile and drag the `WezTerm.app` bundle to your `Applications` folder 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 3. First time around, you may need to right click and select `Open` to allow launching
@ -29,7 +29,7 @@ The CI system builds a `.deb` file on Ubuntu 16.04. It is compatible with other
debian style systems, including Debian 9 (Stretch) and later versions. debian style systems, including Debian 9 (Stretch) and later versions.
<a href="{{ ubuntu_stable }}" class="btn">Download for Ubuntu</a> <a href="{{ ubuntu_stable }}" class="btn">Download for Ubuntu</a>
<a href="{{ ubuntu_pre }}" class="btn">Nightly for Ubuntu</a> <a href="https://github.com/wez/wezterm/releases/download/nightly/wezterm-nightly.deb" class="btn">Nightly for Ubuntu</a>
```bash ```bash
curl -LO {{ ubuntu_stable }} curl -LO {{ ubuntu_stable }}
@ -44,7 +44,7 @@ sudo apt install -y ./{{ ubuntu_stable_asset }}
The CI system builds an `.rpm` file on Fedora 31. The CI system builds an `.rpm` file on Fedora 31.
<a href="{{ fedora_stable }}" class="btn">Download for Fedora</a> <a href="{{ fedora_stable }}" class="btn">Download for Fedora</a>
<a href="{{ fedora_pre }}" class="btn">Nightly for Fedora</a> <a href="https://github.com/wez/wezterm/releases/download/nightly/wezterm-nightly.rpm" class="btn">Nightly for Fedora</a>
```bash ```bash
sudo dnf install -y {{ fedora_stable }} sudo dnf install -y {{ fedora_stable }}