Why not added prefix option? #8225
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @shurshilov, MkDocs also doesn't provide any API for compute logic for themes, so there is no dynamic way for the theme to change the location. However, you could create a hook, which would do the modification for you. You could use a similar approach which I used to dynamically modify files:
It also doesn't need to be a hook, just another script. Similar to this approach: |
Beta Was this translation helpful? Give feedback.
Hello @shurshilov,
the location of the bundled theme assets is static, and they're copied from the theme to the final build as-is in 1:1 directory structure.
https://github.com/squidfunk/mkdocs-material/tree/master/material/templates/assets
MkDocs also doesn't provide any API for compute logic for themes, so there is no dynamic way for the theme to change the location.
If you want this situation to change, you could create an issue upstream.
However, you could create a hook, which would do the modification for you.
Like copy the files somewhere else and then modify the templates.
You could use a similar approach which I used to dynamically modify files:
You don't need any "backup"…