Hosting Rust crate documentation with Nginx
Docs.rs is great, but if you want to host yourself it’s pretty easy.
Docs.rs is great, but if you want to host yourself it’s pretty easy.
secana, Or use kellnr.io to host your crates. It automatically builds the corresponding docs and hosts them for you. Disclaimer: I’m the author.
sugar_in_your_tea, Dark mode
I’m sold.
kdwarn, FYI you get that with self-hosting Rust docs too.
sugar_in_your_tea, Yup, but crates.io doesn’t have a dark theme. Fortunately
cargo search
exists though.
kdwarn, Ah, I see. If you want a whole registry.
sugar_in_your_tea, I meant for the private and cached packages, not a full mirror. Having at least dark mode on all parts of the UI, not just the docs, is nice, and I wish crates.io supported it.
I don’t care about dark mode enough to mirror all of crates.io, I’d rather just use a browser addon on to toggle the background and text.
Add comment