The website combines a standalone landing page with the mdBook documentation:
homepage/contains the landing page and its styles.src/contains the mdBook documentation.install/contains the hosted shell and PowerShell installers and the checksum manifest for the first release.site/is the generated website, with the documentation undersite/docs/.
Build the complete site from the repository root:
./book/build-site.shServe book/site/ with any static file server to preview the landing page and
documentation together. Running mdbook serve book remains useful when working
only on documentation.
To check local documentation links during mdbook build or the site build,
install the mdBook backend:
cargo +stable install mdbook-linkcheck2 --version 0.12.2 --lockedThe checker is optional for local and deployment builds and required by the
Book workflow. It checks local file links without contacting external sites;
heading anchors and TOML examples are not checked. With multiple backends,
plain mdbook build book writes HTML under book/book/html/; the site script
keeps it at site/docs/.
Command and language tables under src/generated/ come from cargo xtask docgen;
edit their Rust metadata or languages.toml source before regenerating them.
The changelog page includes the repository's root CHANGELOG.md using mdBook's
built-in include directive. Edit that file to update release notes on both GitHub
and the website; no copying or generation step is needed.
The site build also publishes /install.sh, /install.ps1, and /checksums/.
Installers download binaries from GitHub Releases. New releases include
SHA256SUMS; 0.1.0 uses the checked-in manifest from GitHub's asset digests.
The site is configured as a static-assets Worker in wrangler.jsonc. To build,
preview, or deploy it locally:
cd book
./cloudflare-build.sh
wrangler dev
wrangler deployThis assumes wrangler is installed separately; the repository has no
JavaScript package manifest or dependencies.
cloudflare-build.sh uses an installed mdbook when available. In Cloudflare's
build environment it downloads the pinned mdBook 0.5.3 release binary before
assembling site/.
For a Workers Builds GitHub integration, use these settings:
- Production branch:
main - Root directory:
book - Build command:
./cloudflare-build.sh - Deploy command:
npx wrangler deploy - Non-production branch deploy command:
npx wrangler versions upload
The mitos.computer zone must be active in the same Cloudflare account and the
hostname must not already have a conflicting CNAME record. Wrangler will create
the Custom Domain DNS record and certificate during the first production deploy.