talira

Create books from Markdown files

open sourceMPL-2.0self-hostablefree

mdBook is a command-line tool from the Rust project that turns a folder of Markdown files into a book: a static website with a chapter sidebar, search, syntax-highlighted code and themes, suited to product and API documentation, tutorials and course material. Preprocessors add custom syntax and change content, alternative backends render other formats, and it can test the Rust code samples in a book. It's what The Rust Programming Language book and much of Rust's own documentation are built with. MPL-2.0 licensed.

Ways to install

Package managers

Problems it solves

  • turn a folder of Markdown files into a searchable documentation website
  • write a technical book or course in Markdown and publish it as a static site
  • a GitBook-like docs site I can build offline from my repo with one binary
  • test the Rust code examples in my documentation so they don't go stale
  • extend my Markdown docs with custom syntax through a plugin
  • publish project documentation from CI without a Node.js toolchain

Features

  • builds a static book website from Markdown
  • chapter navigation and built-in search
  • syntax highlighting for many languages
  • customisable themes
  • preprocessors for custom syntax and content changes
  • pluggable backends for other output formats
  • tests Rust code samples
  • single binary for Windows, macOS and Linux

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what mdBook does.

  1. GitBook GitBook keeps docs accurate, for both people and AI
  2. MkDocs Project documentation with Markdown.
  3. Docusaurus Easy to maintain open source documentation websites.
  4. docsify A magical documentation site generator: Markdown files become a website with no build step
  5. Quarto An open-source scientific and technical publishing system
  6. VitePress Vite & Vue powered static site generator

Compare mdBook with the top 3