Skip to content

Why not added prefix option? #8225

Answered by kamilkrzyskow
shurshilov asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • #5060
    You don't need any "backup"…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shurshilov
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