You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want a more automated solution, there isn't a specific plugin for handling absolute links in MkDocs, but you can use a workaround with the mkdocs_macros_plugin. This plugin allows you to create custom macros in your Markdown files that can be replaced with content during the build process.
You can use the pymdownx.pathconverter extension to convert relative Markdown links to absolute links, taking into account the use_directory_urls configuration option.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It is possible trought more ways:
1. Jinja template
2.
mkdocs_macros_plugin
If you want a more automated solution, there isn't a specific plugin for handling absolute links in MkDocs, but you can use a workaround with the mkdocs_macros_plugin. This plugin allows you to create custom macros in your Markdown files that can be replaced with content during the build process.
3.
pymdownx.pathconverter
You can use the pymdownx.pathconverter extension to convert relative Markdown links to absolute links, taking into account the use_directory_urls configuration option.
Beta Was this translation helpful? Give feedback.
All reactions