{"schemaVersion":"1.0","record":{"label":"mdBook","description":"Rust command-line generator for navigable Markdown books and technical manuals.","aliases":[],"kind":"software","website":"https://rust-lang.github.io/mdBook/","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.","license":"MPL-2.0","lifecycle":"active","example":false,"features":[{"name":"Chapter-based documentation","status":"supported","detail":"SUMMARY.md establishes ordered, nested chapters for a searchable book.","useCase":"Technical manuals and tutorials","platforms":["Web","Local or hosted build environment"],"region":"Hosting and optional external-service availability apply","evidence":[{"url":"https://rust-lang.github.io/mdBook/","locator":"Markdown books, Rust implementation and extension model","retrievedAt":"2026-10-07T00:35:20Z","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/format/summary.html","locator":"Chapter order, nesting and source links","retrievedAt":"2026-10-07T00:37:47Z","kind":"vendor"}]},{"name":"Example testing","status":"limited","detail":"Built-in testing is Rust-specific; highlighting other languages does not execute their examples.","useCase":"Checking code samples","platforms":["Web","Local or hosted build environment"],"region":"Hosting and optional external-service availability apply","evidence":[{"url":"https://rust-lang.github.io/mdBook/cli/test.html","locator":"Rust-only testing and unlabelled code blocks","retrievedAt":"2026-10-07T00:35:57Z","kind":"vendor"}]}],"alternatives":[],"slug":"mdbook","draftAlternatives":[{"targetSlug":"mkdocs","status":"limited","detail":"Can replace the documentation generation workflow after mapping navigation, themes and extensions.","useCase":"Chapter-oriented Markdown manuals","platforms":["Web","Local or hosted build environment"],"region":"Hosting and optional external-service availability apply","evidence":[{"url":"https://rust-lang.github.io/mdBook/","locator":"Markdown books, Rust implementation and extension model","retrievedAt":"2026-10-07T00:35:20Z","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/format/summary.html","locator":"Chapter order, nesting and source links","retrievedAt":"2026-10-07T00:37:47Z","kind":"vendor"},{"url":"https://www.mkdocs.org/","locator":"Markdown, YAML, Python and static hosting","retrievedAt":"2026-10-07T00:24:20Z","kind":"vendor"}]}],"evidence":[{"url":"https://rust-lang.github.io/mdBook/","locator":"Markdown books, Rust implementation and extension model","retrievedAt":"2026-10-07T00:35:20Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/rust-lang/mdBook/blob/main/LICENSE","locator":"MPL 2.0","retrievedAt":"2026-10-07T00:35:57Z","id":"mdbook-license","title":"mdBook license","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/","locator":"Markdown books, Rust implementation and extension model","retrievedAt":"2026-10-07T00:35:20Z","id":"mdbook-home","title":"mdBook introduction","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/format/summary.html","locator":"Chapter order, nesting and source links","retrievedAt":"2026-10-07T00:37:47Z","id":"mdbook-summary","title":"mdBook summary structure","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/format/configuration/renderers.html","locator":"Output configuration, additional backends and HTML","retrievedAt":"2026-10-07T00:35:20Z","id":"mdbook-render","title":"mdBook renderers","kind":"vendor"},{"url":"https://rust-lang.github.io/mdBook/cli/test.html","locator":"Rust-only testing and unlabelled code blocks","retrievedAt":"2026-10-07T00:35:57Z","id":"mdbook-test","title":"mdBook test command","kind":"vendor"},{"url":"https://www.mkdocs.org/","locator":"Markdown, YAML, Python and static hosting","retrievedAt":"2026-10-07T00:24:20Z","id":"mkdocs-home","title":"MkDocs overview","kind":"vendor"},{"url":"https://www.mkdocs.org/user-guide/writing-your-docs/","locator":"Markdown pages, navigation, linking and assets","retrievedAt":"2026-10-07T00:25:31Z","id":"mkdocs-writing","title":"Writing MkDocs documentation","kind":"vendor"}],"overviewCitations":["mdbook-home"],"licenseCitations":["mdbook-license"],"sections":[{"id":"structure","heading":"Book structure and source","paragraphs":[{"id":"summary","content":[{"text":"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."}],"citations":["mdbook-summary"]},{"id":"renderers","content":[{"text":"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."}],"citations":["mdbook-render"]}]},{"id":"examples","heading":"Executable examples and formats","paragraphs":[{"id":"testing","content":[{"text":"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."}],"citations":["mdbook-test"]},{"id":"ownership","content":[{"text":"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."}],"citations":["mdbook-license","mdbook-render"]}]},{"id":"comparison","heading":"Substitution scope","paragraphs":[{"id":"fit","content":[{"text":"mdBook can substitute for "},{"text":"MkDocs","targetSlug":"mkdocs"},{"text":" 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."}],"citations":["mdbook-home","mdbook-summary","mdbook-test","mkdocs-home","mkdocs-writing"]}]}]},"id":"Q1007","revision":1055,"updatedAt":"2026-10-13T18:57:35Z","sourceUrl":"https://substitutefor.net/entities/Q1007?revision=1055"}}