-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
It should be possible to link to things like https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#indexing via [Vec#indexing]
.
This is pretty straightforward to implement. We already track fragment specifiers for things like methods and enum variants, which we extract here. What we can do additionally is when parsing if we come across #foo
, strip it out, continue resolution, and if the resolved thing doesn't already have a fragment, use this instead.
I volunteer @sunjay to work on this, because he's the one who wanted this feature 😉
Unsure if this needs an RFC.
sunjay
Metadata
Metadata
Assignees
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.