GitHub Pages Setup
This repo ships as an mdBook site.
Local preview
cargo install mdbook --version 0.5.4
cargo install mdbook-mermaid --version 0.17.1
make docs-build # writes ./site
make docs-serve # http://127.0.0.1:3000
Enable Pages (Actions source — recommended)
- Repo → Settings → Pages.
- Source: GitHub Actions.
- Push to
main; theDeploy GitHub Pagesworkflow builds and publishes.
Branch-based fallback
If you prefer a branch source instead of Actions:
make docs-build
# copy the built site to a docs/ folder on main, or push site/ to gh-pages
cp -r site docs
git add docs && git commit -m "docs: publish site" && git push
Then set Pages source to Deploy from a branch → main → /docs.
Notes
book.tomlsetssrc = "docs"andbuild-dir = "site".- Mermaid diagrams render via the
mdbook-mermaidpreprocessor; the required runtime (mermaid.min.js) and initializer (mermaid-init.js) are committed at the repo root and wired throughadditional-jsinbook.toml. - To regenerate the Mermaid assets (e.g. after upgrading
mdbook-mermaid), runmdbook-mermaid installin the repo root and commit the resulting changes. - Internal links are relative and must stay within the repo.