Building these docs
This book is an mdBook. Sources live
in docs/src/. The rendered site is what will be served at
docs.pallium.tech.
Prerequisites
- mdBook on
your
PATH(cargo install mdbook). This repo was last built with mdBook 0.4.x.
mdbook --version
Local
From the docs/ folder:
mdbook serve --open
That watches src/ and serves at http://localhost:3000. mdbook build
writes HTML into docs/book/ (gitignored).
Deploy
Cloudflare Pages project name: pallium-docs. Output directory: the
book/ folder produced by mdbook build. Custom domain:
docs.pallium.tech.
cd docs
./deploy.sh # build only
./deploy.sh --prod # build + deploy
First time only, create the Pages project:
npx wrangler pages project create pallium-docs --production-branch master
Then in the dashboard: Workers & Pages → pallium-docs → Custom domains →
add docs.pallium.tech.
Schema, live-protocol, and database internals live in a separate
mdBook: specs/ → specs.pallium.tech.
Editing
- Add or rename a page under
src/. - List it in
src/SUMMARY.md— that file is the sidebar. - Preview with
mdbook serve. - Keep tone short and literal. Prefer tables for shortcuts and mode matrices. Do not invent features that are not in the app.
book.toml sets create-missing = false, so a SUMMARY entry without a
file is a build error (on purpose).
Tone: short sentences, tables for matrices, no invented features. If the app uses an em dash for undefined, say so. Canonical vs live session vs milestone is easy to smash together — keep them distinct (see the Glossary).