mdBook Rust command-line generator for navigable Markdown books and technical manuals.
Overview 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.[2]
Contents 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.[3]
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.[4]
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.[5]
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.[1] [4]
Substitution scope mdBook can substitute for 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.[2] [3] [5] [6] [7]
Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.