-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Linkify more things in rustdoc #24484
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Just ran into this today; I'd really like to have links from the impls in the Implementors section to the source containing the impl. |
Triage: we always need more links.... |
The sidebar already has links to these h2's ids, but for convenience, the h2 itself should also be a link (retaining its present appearance). This should address most of rust-lang#24484.
…=GuillaumeGomez rustdoc: make major section headers self-links The sidebar already has links to these h2's ids, but for convenience, the h2 itself should also be a link (retaining its present appearance).  This should address most of #24484.
…=GuillaumeGomez rustdoc: make major section headers self-links The sidebar already has links to these h2's ids, but for convenience, the h2 itself should also be a link (retaining its present appearance).  This should address most of #24484.
Update: Headers written in docs and (most) auto-generated headers are either fully hyperlinked or have a "section marker" symbol that shows up on hover. Major auto-generated page headers have links in the top of the sidebar of the page. Impl blocks do not have hyperlinks (yet); that's #23552. |
A page like vec has many things that could be useful to link to. These should be possible to link to by clicking on:
Trait Implementations
headerimpl
's on a page.Methods
at the topOn index it's hit or miss:
On clone
I don't have any big use cases but when I want to link to these for something like this bug I can't link to any specific line. I gotta say go to vec page, scroll 75% to bottom. Squint hard to see it.
The text was updated successfully, but these errors were encountered: