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