-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not mention a non-existing default of crates.io #11685
Conversation
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
Hmm… I'm pretty sure the ICE is not actually related to the documentation-only change in this PR 😅 |
You are correct! In another PR, this was said:
|
It appears to be working now. (According to the docs.rs build log, it appears that the document was built a few minutes after you opened this PR.) |
Given the link eventually shows on crates.io after the doc was built, does that the original statement still stands and this PR can be closed? |
Ooh so do you mean that the process here is:
That's possible, but my guess would more be along the lines of "I added the link in 0.1.1 and crates.io picked it up from that". To support this statement, a random old crate has no documentation link but does have a docs.rs page. TBH I'm not sure what behavior is supposed to be. If you're sure that it actually will add the link and it just didn't do so at the time of the |
I just published a new crate on crates.io, and it does not appear to link the documentation at all when no documentation field is provided.
Go back far enough and docs.rs was not an official service but was something someone was doing because they thought it was important. It looks like |
Found it! The piece of code in crates.io is here. Seems like the JavaScript code fetches |
Hmm ok so another way I see of fixing this would be to actually make crates.io in line with the current doc. WDYT about having a https://github.com/rust-lang/crates.io/blob/38cd37469fe88c18814c3c348444da297fec49e8/app/models/version.js#L158 actually returning |
I think that would cause issues if the docs are not available. A user clicking on the link would get an error if the docs weren't available. You can check with the crates.io and docs.rs teams to see if that's a change they would want to do, but it is not something we would be able to answer here. |
@rustbot author |
Going to close due to inactivity. This confusion may be fixed on crates.io/docs.rs side, and we might want to avoid documenting implementation details of other projects. That being said, if you have more improvement on this topic, feel free to open a new issue/PR. |
Just a heads up, I nominated this and #11777 for discussion (though I probably should have actually put labels on them). It's not clear to me on how we should actually proceed here. At least in the short term, we could clarify this text such as: "link your crate to the corresponding [docs.rs] page when the documentation is available." or something like that. But there is a longer-term decision about whether or not we should recommend specifying the |
…nglo docs: Clarify that crates.io doesn't link to docs.rs right away. This implements the suggestion in #11685 (comment) to help clarify the confusion about the documentation link not appearing on crates.io. There may be more to follow up here, perhaps with changes on crates.io or docs.rs, to help with some of the confusion. For example, #11777, or changing crates.io to always link to docs.rs, and have docs.rs provide better error pages when docs aren't available. This is just intended as a short-term fix to address some of the confusion.
…nglo docs: Clarify that crates.io doesn't link to docs.rs right away. This implements the suggestion in #11685 (comment) to help clarify the confusion about the documentation link not appearing on crates.io. There may be more to follow up here, perhaps with changes on crates.io or docs.rs, to help with some of the confusion. For example, #11777, or changing crates.io to always link to docs.rs, and have docs.rs provide better error pages when docs aren't available. This is just intended as a short-term fix to address some of the confusion.
I just published a new crate on crates.io, and it does not appear to link the documentation at all when no documentation field is provided.
Example: https://crates.io/crates/kine/0.1.0