Skip to content

mdBook

Rust command-line tool that turns Markdown files into an online book

Weak copyleft (OSI) · MPL-2.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

64

Health

Active

Overview

Stars

22,324

Last commit

yesterday

Nov 2026

Repository age

11 years

since Jul 2015

Latest version

v0.5.4

Jul 2026

Contributors

–

22 active in 90 days

Releases

3

last 12 months

Language

Rust

mdBook is a command-line utility that builds online books from Markdown files. You write chapters in Markdown, and it produces a static site you can host anywhere. It is written in Rust, and has been developed since 2015 under the rust-lang organization. The project's own User Guide is built with it and shows what the output looks like.

You install it as a single binary, for example through Homebrew on macOS or Linux. It runs from the terminal, so it fits easily into scripts and CI pipelines. The code is licensed under the Mozilla Public License 2.0.

mdBook is often compared to GitBook. It covers the case where you want a documentation book generated from plain files kept in version control. It has no hosted editor or accounts, so it suits projects that already work with Git and a terminal.

Who it's for

Open source maintainers writing project documentation

Markdown files in your repository become a browsable book that you can publish as static files.

Skip if: Your contributors need a web editor and do not use Git.

Technical authors who write guides and manuals

You write chapters in plain Markdown and build the whole book with one command.

Skip if: You need comments, access control or real-time collaboration.

Rust developers

It ships as a Rust tool from the rust-lang organization and fits the Rust ecosystem.

Skip if: You want a documentation tool in a different language ecosystem.

The problem it solves

Hosted documentation platforms charge for features and keep your content in their system. mdBook lets you keep documentation as Markdown in your repository and build a book from it yourself.

Strengths

  • Builds a book from plain Markdown files you keep in version control
  • Single command-line tool for Linux and macOS, available through Homebrew
  • Developed since 2015, with 23 contributors in the last 90 days
  • The project's own User Guide is built with it as a working demo

Trade-offs

  • No web editor or hosted service; you work from files and the terminal
  • Licensed under MPL-2.0, which has file-level copyleft obligations
  • Only three releases in the last year

Frequently asked questions

Is mdBook free?

Yes. It is open source under the Mozilla Public License 2.0.

Is it like GitBook?

It has a similar goal of making books from Markdown, but it is a command-line tool written in Rust. It has no hosted editor.

Which platforms does it run on?

It runs from the command line on Linux and macOS, and a Homebrew formula is available.

What do I need to write a book?

Markdown files. mdBook turns them into an online book.

Similar tools in Developer portals and documentation

Scalar

Developer portals and documentation

OpenAPI-driven API reference and API client for teams that publish REST API docs

16k 980 today Thriving MIT

Zeal

Developer portals and documentation

Offline documentation browser for developers, compatible with Dash docsets

13k 855 23 days ago Active GPL-3.0

deepwiki-open

Developer portals and documentation

Generates browsable wikis and diagrams from GitHub, GitLab or Bitbucket repos

18k 2k yesterday Active MIT

daux.io

Developer portals and documentation

4.5k 508 9 years ago Dormant Unknown

Linux Command Library

Developer portals and documentation

Offline command-line reference with thousands of man pages for Linux learners

2.1k 180 today Active Apache-2.0

rubyapi

Developer portals and documentation

Fast, mobile-friendly Ruby documentation browser with search, self-hostable via Docker

595 35 15 days ago Slowing MIT