cargo-docserver
cargo-docserver copied to clipboard
Recompile docs while server is running by pressing ENTER
This is something I've been missing 😄
the way I do it is by using cargo-watch
cargo watch -x doc -x docserver
this way it rebuilds the docs automatically when the sources are changed and restart the server :)
would that solve the issue for you @davidpdrsn? this way we keep this crate laser-focused in doing one thing, serving the docs over http :)
Yeah that would work, but the project I'm working on right now it quite large so it takes a while to compile the docs. Seems a bit "wasteful" to do that on every save.
I totally understand you wanting to keep this laser focused, so feel free to close this PR 😊 I'll just keep using my fork.
I have used the cargo watch method myself but, honestly, I prefer the 'press enter' method sometimes. Can't this program work both ways?