Repository navigation
root-relative links and github-pages #3126
|
In my docs I'm creating all internal links as root-relative, e.g. a link form one page to something else as e.g. Whats the best way of handling root-relative links in mkdocs-materials? Cheers |
Answered by
squidfunk
Oct 19, 2021
Replies: 1 comment 1 reply
|
Have you defined Line 23 in ff53ba0 If that doesn't work, there might be some plugins that help to transform root-relative links prior to the build. Another idea is to use the |
1 reply
Answer selected by
madeinoz67
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you defined
site_url? You should setsite_urlto the root path of your documentation project:mkdocs-material/mkdocs.yml
Line 23 in ff53ba0
If that doesn't work, there might be some plugins that help to transform root-relative links prior to the build. Another idea is to use the
macrosplugin: mkdocs/mkdocs#192 (comment)