Files
LLeMbas-TTY/ci/build-docs.sh
T
Wez Furlong 9a610358d1 docs: upgrade to mdbook 0.4, enable link checking
Standardize on `thing.md` rather than `thing.markdown` to make it
easier to cross link.
2021-01-30 14:14:29 -08:00

16 lines
586 B
Bash
Executable File

#!/bin/bash
[[ -f /tmp/wezterm.releases.json ]] || curl https://api.github.com/repos/wez/wezterm/releases > /tmp/wezterm.releases.json
python3 ci/subst-release-info.py
python3 ci/generate-docs.py
mdbook build docs
# mdBook can append js includes but it is too late to register syntax
# highlighting extensions, so we apply brute force here
mv gh_pages/html/book.js gh_pages/html/book.2
cat docs/lua.js gh_pages/html/book.2 > gh_pages/html/book.js
rm gh_pages/html/book.2
cp assets/icon/terminal.png gh_pages/html/favicon.png
cp assets/icon/wezterm-icon.svg gh_pages/html/favicon.svg