# mdBook

Rust command\-line generator for navigable Markdown books and technical manuals\.

ID: Q1007 · Revision: 1055

Type: software · License: MPL\-2\.0[^mdbook-license] · Status: active

Website: https://rust-lang.github.io/mdBook/



mdBook is a command\-line tool written in Rust for building books and documentation from Markdown\. It provides a navigable reader interface, syntax highlighting and integrated search, with preprocessors and output backends for extensions\. It suits manuals, tutorials and reference material organized as an ordered sequence of chapters\.[^mdbook-home]

## Book structure and source

A required SUMMARY\.md file defines included chapters, their order, hierarchy and source paths\. Its accepted structure is deliberately narrower than arbitrary Markdown\. Draft chapter entries can appear as disabled navigation links without corresponding content, which represents an outline rather than an access restriction on an existing published page\.[^mdbook-summary]

HTML output is enabled by default when no output tables are defined\. Adding another output backend changes that default, so HTML must be explicitly retained if both are wanted\. Multiple backends also change output\-directory layout\. A pipeline that assumes the original folder structure can therefore need adjustment even when the source chapters are unchanged\.[^mdbook-render]

## Executable examples and formats

The built\-in test command currently supports Rust examples rather than every language shown by syntax highlighting\. Unlabelled code blocks are tested as Rust, while blocks labelled with another language or marked to be ignored are skipped\. A visually highlighted example should not be described as automatically executed or validated merely because it appears in a book\.[^mdbook-test]

mdBook uses MPL 2\.0\. Its built\-in HTML and processed\-Markdown backends can be supplemented by separately installed community backends\. Those additional tools have their own dependencies and behavior, so a desired PDF or other delivery format should be verified against the selected backend rather than inferred from the generator's book\-oriented name\.[^mdbook-license][^mdbook-render]

## Substitution scope

mdBook can substitute for [MkDocs](/mkdocs) for a chapter\-oriented technical manual where its navigation and extension model fit\. Markdown prose may be reusable, but SUMMARY\.md, output configuration, theme customizations and executable\-example rules differ\. The comparison concerns document generation and reading, not a shared plugin runtime or an automatic import of every MkDocs extension\.[^mdbook-home][^mdbook-summary][^mdbook-test][^mkdocs-home][^mkdocs-writing]

## Capabilities and substitutions

### Chapter\-based documentation — supported

SUMMARY\.md establishes ordered, nested chapters for a searchable book\.[^mdbook-home][^mdbook-summary]

Use case: Technical manuals and tutorials · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

### Example testing — limited

Built\-in testing is Rust\-specific; highlighting other languages does not execute their examples\.[^mdbook-test]

Use case: Checking code samples · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

### [Substitute for MkDocs](/mkdocs) — limited

Can replace the documentation generation workflow after mapping navigation, themes and extensions\.[^mdbook-home][^mdbook-summary][^mkdocs-home]

Use case: Chapter\-oriented Markdown manuals · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

## References

[^mdbook-license]: [mdBook license](<https://github.com/rust-lang/mdBook/blob/main/LICENSE>) — MPL 2\.0 (vendor; retrieved 2026-10-07T00:35:57Z)

[^mdbook-home]: [mdBook introduction](<https://rust-lang.github.io/mdBook/>) — Markdown books, Rust implementation and extension model (vendor; retrieved 2026-10-07T00:35:20Z)

[^mdbook-summary]: [mdBook summary structure](<https://rust-lang.github.io/mdBook/format/summary.html>) — Chapter order, nesting and source links (vendor; retrieved 2026-10-07T00:37:47Z)

[^mdbook-render]: [mdBook renderers](<https://rust-lang.github.io/mdBook/format/configuration/renderers.html>) — Output configuration, additional backends and HTML (vendor; retrieved 2026-10-07T00:35:20Z)

[^mdbook-test]: [mdBook test command](<https://rust-lang.github.io/mdBook/cli/test.html>) — Rust\-only testing and unlabelled code blocks (vendor; retrieved 2026-10-07T00:35:57Z)

[^mkdocs-home]: [MkDocs overview](<https://www.mkdocs.org/>) — Markdown, YAML, Python and static hosting (vendor; retrieved 2026-10-07T00:24:20Z)

[^mkdocs-writing]: [Writing MkDocs documentation](<https://www.mkdocs.org/user-guide/writing-your-docs/>) — Markdown pages, navigation, linking and assets (vendor; retrieved 2026-10-07T00:25:31Z)

Source revision: https://substitutefor.net/entities/Q1007?revision=1055
