-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 id values to rustdoc source view for convenient linking #25189
Comments
As an example, http://doc.servo.org/src/script/dom/document.rs.html#struct-Document could link to the opening line of the declaration of the Document struct, by changing |
Triage: no change |
The line number is linkable; it's not quite the same thing. @rust-lang/rustdoc is this a feature we'd consider adding? It seems like a marginal improvement to me. |
Ids have been somewhat stable for quite some time now, aren't they? |
Not in the source view, right?
… On Sep 24, 2018, at 3:21 PM, Guillaume Gomez ***@***.***> wrote:
Ids have been somewhat stable for quite some time now, aren't they?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
In the source view, the ids are literally line numbers. |
Right, this ticket is asking for
in addition to that. |
I have difficulties to understand what need it would fulfil... |
Me too! No need to debate this further; github links to specific revisions work fine. |
It would be really nice to provide stable links in the source view for generated documentation. I envision providing ids for thinks like data types and function names, and perhaps method implementations; these would need to remain stable as long as the type names involved did not change.
The text was updated successfully, but these errors were encountered: