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

Another approach would be to use some sort of semi-automatic redirect creation for pages that have been moved:

  • #3758
    The approach adds some overhead, and isn't perfect since the redirects would be static pages with a redirect link, so no a true 404/403 HTTP status code.

I once took this approach and adjusted…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stoobie
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