Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill should be used when the user asks about "mdBook", "mdbook", "book.toml", "SUMMARY.md", "mdbook build", "mdbook serve", "mdbook init", "mdbook watch", "mdbook test", "mdbook clean", "mdBook configuration", "mdBook preprocessor", "mdBook renderer", "mdBook backend", "mdBook theme", "mdBook syntax highlighting", "mdBook MathJax", "mdBook search", "mdBook CI deployment", "mdBook GitHub Pages", "mdBook GitLab Pages", "mdBook custom theme", "index.hbs", "mdBook editor", "mdBook markdown", "
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 61% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -18% | 0% |
Complete reference for mdBook, the Rust-based tool for creating books from Markdown. Auto-generated from the official guide at https://github.com/rust-lang/mdBook.
The references/ directory contains the full, unmodified guide markdown, updated daily.
book.toml (TOML) syntax for configuration examples.SUMMARY.md format for table of contents structure.Identify the topic from the user's question, then read the matching reference file:
| Topic | File | |-------|------| | Overview and introduction | references/overview.md | | Installation (cargo, binaries) | references/installation.md | | Creating a new book | references/creating-a-book.md | | Reading / navigating books | references/reading-books.md |
| Topic | File | |-------|------| | All CLI commands (init, build, watch, serve, test, clean, completions) | references/cli.md |
| Topic | File | |-------|------| | SUMMARY.md structure and syntax | references/summary-format.md | | Markdown features and extensions | references/markdown.md | | mdBook-specific features (hiding code, include, playground) | references/mdbook-specific.md | | MathJax support | references/mathjax.md |
| Topic | File | |-------|------| | book.toml (general, preprocessors, renderers, environment variables) | references/configuration.md |
| Topic | File | |-------|------| | Theme customization (index.hbs, syntax highlighting, editor) | references/theme.md |
| Topic | File | |-------|------| | Writing preprocessors and backends (Rust API) | references/for-developers.md |
| Topic | File | |-------|------| | CI/CD (GitHub Actions, GitLab CI) | references/continuous-integration.md |
When reference files are insufficient, fetch the latest docs from raw GitHub:
https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/<path>.mdExamples:
https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/format/configuration/general.mdhttps://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/cli/build.mdhttps://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/format/theme/syntax-highlighting.mdbook.toml and Markdown for SUMMARY.md.references/for-developers.md.references/continuous-integration.md.bashmdbook init my-book cd my-book mdbook serve --open # preview at http://localhost:3000
my-book/
├── book.toml # Configuration
├── src/
│ ├── SUMMARY.md # Table of contents
│ ├── chapter_1.md
│ └── chapter_2/
│ ├── section_1.md
│ └── section_2.md
└── book/ # Generated output (after build)markdown# Summary [Introduction](README.md) - [Chapter 1](chapter_1.md) - [Section 1.1](chapter_1/section_1.md) - [Chapter 2](chapter_2.md) --- [Appendix](appendix.md)
toml[book] title = "My Book" authors = ["Author Name"] language = "en" src = "src" [build] build-dir = "book" [output.html] default-theme = "light" preferred-dark-theme = "ayu" git-repository-url = "https://github.com/user/repo"
bashmdbook build # build to book/ mdbook serve # live preview server mdbook watch # rebuild on changes mdbook test # test Rust code samples mdbook clean # remove build artifacts
Other measured skills in the registry, with their headline benchmark lift.