-
Notifications
You must be signed in to change notification settings - Fork 324
Intra-doc links #497
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
Intra-doc links #497
Conversation
This commit changes all the documentation to use intra-doc links, which were stabilized in rust 1.48. This helps to avoid broken links in crates that depend on this one. fixes rust-itertools#496
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.
I am not that much into documentation, but assuming that you transformed the links properly to the new format, I think this is a valuable contribution.
/// [`multizip`]: fn.multizip.html | ||
/// |
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.
Could you explain why this commit removes some lines?
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.
In markdown if you write [foo]
without defining [foo]: bar
or writing [foo](bar)
, the link will go directly to foo
. That means that if the text of the link happens to already be valid according to intra-doc link rules, there is no need to provide a custom link target (this line would end up reading [`multizip`]: multizip
and rustdoc knows enough to strip the backticks).
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.
Thanks for this! This maybe violates our MSRV policy, but not in a build-breaking way so I'm fine with merging it.
bors r+
497: Intra-doc links r=jswrenn a=digama0 This commit changes all the documentation to use intra-doc links, which were stabilized in rust 1.48. This helps to avoid broken links in crates that depend on this one. fixes #496 Co-authored-by: Mario Carneiro <[email protected]>
Build failed: |
Huh. I'm really not sure what to make of this build "failure". Everything appears to have passed. |
bors retry |
497: Intra-doc links r=jswrenn a=digama0 This commit changes all the documentation to use intra-doc links, which were stabilized in rust 1.48. This helps to avoid broken links in crates that depend on this one. fixes #496 Co-authored-by: Mario Carneiro <[email protected]>
Build failed: |
bors retry |
Build succeeded: |
This commit changes all the documentation to use intra-doc links, which
were stabilized in rust 1.48. This helps to avoid broken links in crates
that depend on this one.
fixes #496