Using --config-file
to call two different yaml files that include different index files?
#8236
-
Hi. I have one repo where I want to build two sets of documentation that share all subdirectories in the Using Where I run into the issue is setting the Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A quick search in the mkdocs documentation didn't reveal an option to do this, especially not in the context of The docs regarding file layout in mkdocs can be found here. What you could do during build-time is symlinking/copying the respective |
Beta Was this translation helpful? Give feedback.
A quick search in the mkdocs documentation didn't reveal an option to do this, especially not in the context of
mkdocs serve
- it canonically renders the fileindex.md
at the root level of yourdocs_dir
at/
of your docs, or falls back to a 404.The docs regarding file layout in mkdocs can be found here.
What you could do during build-time is symlinking/copying the respective
index-{variant}.md
toindex.md
by providing the needed variant via e.g. ENV variable, then continuing to build the static docs referencing themkdocs-{variant}.yml
.