mdbook/src
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
..
cmd serve: Fix repeated error message when HTML config is invalid 2025-12-11 11:22:16 -08:00
main.rs Remove clap macro_use 2025-09-12 06:49:54 -07:00