Skip to content

Is there a way to use cross references instead of links? #8281

Answered by kamilkrzyskow
stoobie asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @stoobie,
there is no built-in way to do that, but there were multiple attempts in the community to help with that and partially solve the issue.

One could be the plugin which will generate the relative paths for you, assuming the Markdown file name is unique. This approach is sort of hands-off, which I think is what you want.
https://github.com/zachhannum/mkdocs-autolinks-plugin

Note

EDIT: As found by Steve in the comment below, there is also another plugin, which is more recent and up-to-date, and therefore it looks like a best place to start with.
https://mkdocstrings.github.io/autorefs/

Another approach would be to use some sort of semi-automatic redirect creation for pages that h…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stoobie
Comment options

@kamilkrzyskow
Comment options

Answer selected by stoobie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants