-
Notifications
You must be signed in to change notification settings - Fork 209
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
Add canonical URL for rustdoc pages #1773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but can we add some tests to make sure it works properly?
@jsha in general: thank you for pushing this forward! |
@jsha I assume the second part of #74 (comment) will be in a second PR? So |
Yes, that's correct. That part is a little trickier - I'll update on #74. |
a66d19f
to
3bd9ef0
Compare
Pushed a new revision with a test. Writing a test helped me notice we were including Added a comment describing why it's fine that the target might in some cases not exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm other than the nit. Thanks!
Sure! I named it after the corresponding field in Metadata. Should I change
that too?
|
Hmm, Metadata is deserialized directly from Cargo.toml I think - if you rename it you'll also need to add a serde attribute so it still deserializes correctly. |
Omit the link for crates that specify their own documentation URL.
Omit the link for crates that specify their own documentation URL.
Part of #74 and #1438