2025-03-14 21:59:59 -06:00
|
|
|
# mdbook
|
|
|
|
|
|
|
|
|
|
> Create online books by writing Markdown files.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://rust-lang.github.io/mdBook/cli/index.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create an mdbook project in the current directory:
|
|
|
|
|
|
|
|
|
|
`mdbook init`
|
|
|
|
|
|
|
|
|
|
- Create an mdbook project in a specific directory:
|
|
|
|
|
|
|
|
|
|
`mdbook init {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Clean the directory with the generated book:
|
|
|
|
|
|
|
|
|
|
`mdbook clean`
|
|
|
|
|
|
|
|
|
|
- Serve a book at <http://localhost:3000>, auto build when file changes:
|
|
|
|
|
|
|
|
|
|
`mdbook serve`
|
|
|
|
|
|
|
|
|
|
- Watch a set of Markdown files and automatically build when a file is changed:
|
|
|
|
|
|
|
|
|
|
`mdbook watch`
|