mdbook/src/cmd
Eric Huss 723d9df6c7 serve: Fix repeated error message when HTML config is invalid
This fixes an issue where `mdbook serve` would repeatedly show an error
message every second if the `output.html` config had a problem. The
issue is that `set_roots` was doing more work than I realized. It is not
necessary to call it every time in the main polling loop, since the
roots only change when the book configuration changes.

The solution is to just reset the roots whenever the book config
changes.

Fixes https://github.com/rust-lang/mdBook/issues/2946
2025-12-11 11:22:16 -08:00
..
watch serve: Fix repeated error message when HTML config is invalid 2025-12-11 11:22:16 -08:00
build.rs Switch from log to tracing 2025-09-12 06:13:45 -07:00
clean.rs Change CLI dest-dir to be relative to the current directory 2025-08-18 16:28:08 -07:00
command_prelude.rs Change CLI dest-dir to be relative to the current directory 2025-08-18 16:28:08 -07:00
init.rs Switch from log to tracing 2025-09-12 06:13:45 -07:00
mod.rs upgrade clap to 4.0 2022-12-14 17:11:08 -08:00
serve.rs Move get_404_output_file to HtmlConfig 2025-09-19 18:11:29 -07:00
test.rs Remove test --dest-dir 2025-08-18 16:15:18 -07:00
watch.rs Switch from log to tracing 2025-09-12 06:13:45 -07:00