astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
17.94k stars 522 forks source link

Feature request: Publishing crate docs #4392

Open abhiaagarwal opened 2 months ago

abhiaagarwal commented 2 months ago

Hey there,

Thanks for the awesome set of crates. I'm interested in using the uv crates as a dependency resolver for internal use. I noticed that the crates are very well-documented, but the docs themselves aren't published.

I understand you don't want to publish the crates to crates.io since you're working fast and don't want to commit to consistent versioning, but would you be open in publishing the crate docs on github pages instead (or your static provider of choice). That way, we don't have to pull the uv tree ourselves and run cargo doc if we want to poke around the various crates.

Thank you!

zanieb commented 2 months ago

We're pretty interested in this if someone wants to contribute!

cc @BurntSushi

BurntSushi commented 2 months ago

For selfishish reasons, I think this would be a great idea, because it would give us a feedback loop to improve our docs. (Which I think could use a lot of improvement.)

abhiaagarwal commented 2 months ago

I can write a quick CI job @zanieb, where exactly do you want it to be published?

And @BurntSushi you say that, but I've personally been thrilled with the quality of documentation for the internal crates!

zanieb commented 2 months ago

<3

I'm down to set up GitHub Pages for now! We can push the docs to a dedicated branch?

abhiaagarwal commented 2 months ago

@zanieb I was planning on adding it to your release strategy, the "modern" way is to publish an artifact of static html files that github pages will deploy from instead of a separate branch. I've heard horror stories where your git history can blow up with the separate branch strategy.

zanieb commented 2 months ago

Oh that sounds nice! I didn't know about that 🫨