mdBook
Web framework / library · Free
An HTML book generator from Markdown: it organizes technical documentation and project reference guides with navigation and built-in search.
Also known as: rust-lang/mdBook; mdbook; rust-mdbook

What you can use for free
Code and local use under MPL-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MPL-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Build a project reference guide from Markdown
- Build an HTML book and test content navigation/search
Example workflow
A possible workflow; this is not a report of hands-on testing.
Build a project reference guide from Markdown.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Organize chapters and the order of technical sections.
- Build an HTML book and test content navigation/search.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing mdBook
Build a project reference guide from Markdown
Choose this when
- Build a project reference guide from Markdown
- Build an HTML book and test content navigation/search
Requirements
- A SUMMARY.md file with a valid chapter list structure and relative paths.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MPL-2.0 for the code, with file-level copyleft.
- Use `-` or `*` for the numbered chapter list without mixing these markers within a list; a draft without a path does not open a completed page.
Frequently asked questions
What can you use for free in mdBook?
Code and local use under MPL-2.0.
What additional costs might arise with mdBook?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for mdBook?
MPL-2.0 for the code, with file-level copyleft.
How do you get started with mdBook?
Organize chapters and the order of technical sections. Build an HTML book and test content navigation/search. Add real data and error handling; check the production build.
How does mdBook determine chapter order and allow unfinished chapters?
SUMMARY.md defines the book structure, chapter order, and nesting. Part titles become non-clickable headings. A draft chapter without a file path appears as a disabled link; prefix/suffix chapters precede/follow the main list, and Markdown file paths are relative to SUMMARY.md.
License
MPL-2.0 for the code, with file-level copyleft.
MPL 2.0 — file-level copyleft
You can use the code in a commercial product and combine it with closed-source files. When distributing it, make the source code of MPL-covered files available, including your changes to those files, and retain notices. Independent new files can remain closed-source. Internal use alone does not require publishing the code.
License termsTechnologies and topics
- mdBook
- web
- Development