cargo-docserver icon indicating copy to clipboard operation
cargo-docserver copied to clipboard

Recompile docs while server is running by pressing ENTER

Open davidpdrsn opened this issue 5 years ago • 4 comments

This is something I've been missing 😄

davidpdrsn avatar Apr 27 '19 10:04 davidpdrsn

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 :)

qmx avatar May 01 '19 02:05 qmx

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 :)

qmx avatar May 01 '19 02:05 qmx

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.

davidpdrsn avatar May 01 '19 07:05 davidpdrsn

I have used the cargo watch method myself but, honestly, I prefer the 'press enter' method sometimes. Can't this program work both ways?

damccull avatar May 26 '22 08:05 damccull