Using --config-file
to call two different yaml files that include different index files?
#8236
Unanswered
DennisJDufrene
asked this question in
Q&A
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I have one repo where I want to build two sets of documentation that share all subdirectories in the
docs
folder. However, stylesheets, overrides, and/docs/index.md
(landing page) are different.Using
mkdocs serve --config-file mkdocs-a.yml
I can set mycustom_dir
to calloverrides-a
and my stylesheetsextra-a.css
versusmkdocs serve --config-file mkdocs-b.yml
to setcustom_dir: overrides-b
and stylesheetsextra-b.css
.Where I run into the issue is setting the
nav
forHome:
toindex-a.md
versusindex-b.md
. Is there a way to call a different/customindex.md
for the home page instead of justindex.md
and have them both live in/docs
?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions