Skip to content

Commit 144a1e4

Browse files
committed
Add documentation for extra-watch-dirs
1 parent 8b486df commit 144a1e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guide/src/format/configuration/general.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ This controls the build process of your book.
8787
build-dir = "book" # the directory where the output is placed
8888
create-missing = true # whether or not to create missing pages
8989
use-default-preprocessors = true # use the default preprocessors
90+
extra-watch-dirs = [] # directories to watch for triggering builds
9091
```
9192

9293
- **build-dir:** The directory to put the rendered book in. By default this is
@@ -108,3 +109,6 @@ use-default-preprocessors = true # use the default preprocessors
108109
default preprocessors from running.
109110
- Adding `[preprocessor.links]`, for example, will ensure, regardless of
110111
`use-default-preprocessors` that `links` it will run.
112+
- **extra-watch-dirs**: A list of paths to directories that will be watched in
113+
the `watch` and `serve` commands. Changes to files under these directories will
114+
trigger rebuilds. Useful if your book depends on files outside its `src` directory.

0 commit comments

Comments
 (0)