Skip to content

rustdoc: add a way to link relative to the root of the docs #63944

Open
@vext01

Description

@vext01

In a recent documentation change, we were unable to create a link to a function in std and had to resort to linking to online documentation.

@eddyb described it best:

../std won't work in core::hint/std::hint and ../../std won't work in test

Thus the link checker can't be satisfied.

For more info, see:
#62891 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions