Site Operations
The project site is an mdBook published to GitHub Pages. English content lives
under docs/src/; Simplified Chinese content lives under docs/zh/src/.
Local Preview
Install mdBook:
cargo install mdbook
Serve the English site:
mdbook serve docs
Serve the Chinese site:
mdbook serve docs/zh
Local Build
mdbook build docs
mdbook build docs/zh
English output is written to docs/book/. Chinese output is written to
docs/book/zh-CN/.
GitHub Pages
The .github/workflows/deploy-site.yml workflow runs on pushes to main and
on manual dispatch. It:
- Checks out the repository.
- Sets up Rust stable.
- Runs
cargo test --workspace. - Installs mdBook.
- Builds English and Chinese mdBooks.
- Uploads
docs/book/as the Pages artifact. - Deploys the artifact through GitHub Pages.
Repository Pages should use GitHub Actions as the source.