1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 06:12:16 +03:00
wezterm/ci/build-docs.sh
Wez Furlong 3d9f341e00 docs: tweak mdbook config
* Sets wezterm's icon as the favicon
* enable github link back to the repo
* Default to Ayu color scheme
2020-12-26 10:05:39 -08:00

16 lines
551 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/book.js gh_pages/book.2
cat docs/lua.js gh_pages/book.2 > gh_pages/book.js
rm gh_pages/book.2
cp assets/icon/terminal.png gh_pages/favicon.png
cp assets/icon/wezterm-icon.svg gh_pages/favicon.svg