cargo-docserver
cargo-docserver copied to clipboard
small http documentation server
This is something I've been missing 😄
It will publish cross-compiled docs for the specific target. Fixes #7
cargo-docserver can't simply pretend that the user meant to fetch "FOO/index.html" if he requests "FOO" and retrieve the file accordingly. Doing that breaks relative links. Instead, cargo-docserver must send a...
If `make_index` detects that the browser left off the final "index.html", for example when requesting "http://MYHOST:4000/MYCRATE", it will append "/index.html" when it looks for the file on disk. The returned...
Previously, it would choose the alphabetically lowest package from among the entire cargo hierarchy. Fixes #8
While developing, I usually use the `--no-deps` option to `cargo doc`. That usually means that when using `cargo docserver`, http:://myhostname:4000 redirects me to a blank "not found" page, because by...
When working on crates with OS-specific functionality, it's useful to cross-compile the docs. It would be even more useful if cargo-docserver allowed viewing the result. Something like this: ``` $...
``` $ git clone --depth=1 https://github.com/nrf-rs/nrf52.git $ cd nrf52/nrf52-hal $ cargo doc $ cargo docserver ``` then click the link -> 404 This fails to find the docs presumably because...