diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 27d5313d..33b22913 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -332,6 +332,10 @@ fn trigger_on_change(book: &mut MDBook, closure: F) -> () if let Err(_) = watcher.watch(book.get_root().join("book.json"), NonRecursive) { // do nothing if book.json is not found } + if let Err(_) = watcher.watch(book.get_root().join("book.toml"), NonRecursive) { + // do nothing if book.toml is not found + } + println!("\nListening for changes...\n"); loop {