-
Notifications
You must be signed in to change notification settings - Fork 12
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
Removed html_root_url verification logic #27
Conversation
@stanciuadrian Oh, that's interesting! I'm a bit surprised that the attribute isn't needed any longer because docs.rs auto-configures it? I don't know the details, but if I generate documentation locally with
well then i still need the Perhaps it's weird to generate documentation with |
@stanciuadrian I can confirm what @mgeisler says. I have a project that depends on $ cargo doc --no-deps Links to |
@dtolnay Please take a look at the discussion here — I am basically not convinced that crates shouldn't set People host documentation elsewhere, most notably on various GitHub pages. That documentation will lose the links to types in dependencies unless documentation for all dependencies is generated and uploaded too. |
Can this be handled by |
@lnicola kind of... except for crates that are not published on crates.io and which then don't have the docs on docs.rs. So simply defaulting to docs.rs would be wrong in general. |
Linking to So this check might still be useful for crates with their documentation hosted somewhere else, as long as the version is still present in the URL. |
Thanks for catching this, you all are right. I reverted the removal of the guideline in rust-lang/api-guidelines@b36cc0d and added a note about the correct time to remove it in rust-lang/api-guidelines@e8ca259 -- after the thing @lnicola suggested has been implemented. That is tracked in rust-lang/rust#42301. Would one of you be interested in implementing that? |
@stanciuadrian Thanks for the PR! I really appreciate the cleanup effort :-) I went ahead and merged #26 since I think we'll keep the As @lnicola said, we could even try to handle crates that host their documentation themselves: if we can detect an outdated version number, then Thinking about, we could simply ignore the host name: if we find any URL where the path ends with |
Or give users ability to control the process by adding a |
You (and probably many others) are using this crate in ways I haven't anticipated when I did the PR and, yes, you are right that people may host their crates in places different from Thanks for letting me know about your use-case and the |
Thanks @stanciuadrian for helping to keep the code clean. I hope we'll need this PR in a few months :-) |
@mgeisler I've looked a bit into rust-lang/rust#42301, but I don't think |
Thanks for the update, @lnicola. We can just leave this PR around until then. |
html_root_url
is no longer needed: rust-lang/api-guidelines@5c457df.