mdBook
$ mdbook Foundation Low RiskmdBook (mdbook) is the Rust project's static book/documentation generator, compiling book.toml and SUMMARY.md hierarchies into searchable static HTML. Beyond sub-second builds (mdbook build), mdbook test executes fenced Rust doctests inside documentation pages.
brew install mdbook mdbook builds static documentation books and runs mdbook test directly on local source trees with millisecond startup.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI (build, test, clean) with fast Rust execution and clear exit codes.
mdbook buildandmdbook testreturn clean non-zero codes on broken links/code- Zero interactive prompts
Pure offline local generator (note custom preprocessors in book.toml execute local binaries if configured).
- Zero network or credential footprint
- Bounded output directory via
-d
Single self-contained Rust binary installable via Homebrew, Cargo, or prebuilt GitHub releases.
brew install mdbookandcargo install mdbook
Cleanest zero-Node static docs generator for structured technical books and Rust projects.
- Built-in search index,
SUMMARY.mdTOC, andmdbook test
Official Rust Project repository (rust-lang/mdBook) actively maintained under MPL-2.0.
- Maintained under
rust-langorganization
Clear official mdBook User Guide documenting CLI subcommands and book.toml.
- Official docs at rust-lang.github.io/mdBook/
Security, Auth & Guardrails
No credentials required; pure offline Rust binary.
Free open-source software (MPL-2.0).
# mdBook Agent Rules - Run `mdbook build` (never `mdbook serve` or `watch`) in synchronous agent turns. - Ensure `SUMMARY.md` links match actual `.md` paths before building. - Run `mdbook test` when editing Rust documentation examples.
Agent-Ready Command Recipes
Safe Read-Only Queries
mdbook test
Compiles and tests fenced Rust code blocks across the book via rustdoc.
mdbook --version
Prints the installed mdbook binary version.
Controlled Writes & Previews
mdbook build -d ./book
Renders the Markdown book configured in book.toml into ./book.
Strengths for Agents
- + Single fast Rust binary with zero Node.js or Python runtime dependencies.
- + Built-in
mdbook testverifies Rust code examples directly inside documentation. - + Simple
book.toml+SUMMARY.mdstructure is effortless for agents to maintain.
Caveats & Pitfalls
- !
mdbook serveandmdbook watchblock until killed. - ! Opinionated book structure offers less general website customization than
hugoormkdocs.