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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
Have you defined
site_url
? You should setsite_url
to 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
macros
plugin: mkdocs/mkdocs#192 (comment)