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:
Mathieu David
2015-11-09 14:31:00 +01:00
parent 522eef9296
commit cdbb2ee5fd
4 changed files with 72 additions and 20 deletions
+13
View File
@@ -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
```