mdBook/book-example/src/cli/watch.md

14 lines
456 B
Markdown
Raw Normal View History

# The watch command
The watch command is useful when you want your book to be rendered on every file change.
You could issue `mdbook build` everytime you change a file. But using `mdbook watch` once will watch your files and will trigger a build whenever you modify a file.
#### Specify a directory
Like `init` and `build`, `watch` can take a directory as argument to use instead of the
current working directory.
2015-12-30 06:59:08 +08:00
```bash
mdbook watch path/to/book
```