mirror of
https://github.com/rust-lang/mdBook.git
synced 2026-12-03 20:41:27 -06:00
Watch builds are now spawned in new threads (using crossbeam) and there is a timelock, preventing multiple builds being triggered in less than a second
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# 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.
|
||||
|
||||
```
|
||||
mdbook watch path/to/book
|
||||
```
|
||||
Reference in New Issue
Block a user