mdbook: add page (#4351)

beep
hellojukay 2020-09-25 14:35:24 +08:00 committed by GitHub
parent da869342b0
commit 4538547a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View File

@ -26,3 +26,7 @@
- Connect to machine via SSH:
`vagrant ssh`
- Output the SSH configuration file of the running Vagrant machine:
`vagrant ssh-config`

24
pages/linux/mdbook.md Normal file
View File

@ -0,0 +1,24 @@
# 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`
- Watch a set of markdown files and automatically build when a file is changed:
`mdbook watch`