1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/mdbook.md

25 lines
528 B
Markdown
Raw Normal View History

2020-09-25 14:35:24 +08:00
# mdbook
2022-10-09 03:34:28 +07:00
> Create online books by writing Markdown files.
2020-09-25 14:35:24 +08:00
> More information: <https://rust-lang.github.io/mdBook/>.
- Create an mdbook project in the current directory:
2020-09-25 14:35:24 +08:00
`mdbook init`
- Create an mdbook project in a specific directory:
2020-09-25 14:35:24 +08:00
`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:
2020-09-25 14:35:24 +08:00
`mdbook serve`
2020-12-29 08:45:05 -03:00
- Watch a set of Markdown files and automatically build when a file is changed:
2020-09-25 14:35:24 +08:00
`mdbook watch`