Make rustdoc method HTML anchor IDs/links unique (#20700)#21967
Make rustdoc method HTML anchor IDs/links unique (#20700)#21967hinsley wants to merge 3 commits intorust-lang:masterfrom
Conversation
add unique contexts to rendered method anchor IDs and links
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cmr (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
|
Right now it's pretty nice to have short anchors like |
|
(needs rebase) |
|
Closing due to inactivity, but feel free to reopen with a rebase! |
This pull request makes rustdoc's rendered method anchor IDs and links unique, so clicking on a particular method link will take you to that specific method description, and not the first similarly-named method description on the page, as is the current behavior.
The link anchors should now have a contextual prefix added to them, so each anchor is unique and refers only to the corresponding method.
This build was tested working under the most recent rust 1.0.0-nightly as of today.
Solves issue #20700.