Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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
  1. Repo → Settings → Pages.
  2. Source: GitHub Actions.
  3. Push to main; the Deploy GitHub Pages workflow 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.toml sets src = "docs" and build-dir = "site".
  • Mermaid diagrams render via the mdbook-mermaid preprocessor; the required runtime (mermaid.min.js) and initializer (mermaid-init.js) are committed at the repo root and wired through additional-js in book.toml.
  • To regenerate the Mermaid assets (e.g. after upgrading mdbook-mermaid), run mdbook-mermaid install in the repo root and commit the resulting changes.
  • Internal links are relative and must stay within the repo.