Combine two folders of docs into a single site.
Note- This is not yet fully functional.
This plugin was written to support internationalization (i18n) and localization (l10n) on large mkdocs sites. It allows a translation to fall-back to the primary language of a site for documents that have not yet been translated.
Install the plugin using pip:
pip install mkdocs-multisite
We have our documentation structured like so:
/
en
- English languagedocs
- English language documentsmkdocs.yml
- English site configuration
fr
- French languagedocs
- French language documentsmkdocs.yml
- French site configuration
Inside of fr/mkdocs.yml
we configure our plugin like this:
plugins:
- multisite:
fallback_dir: "../en/docs"
When our site is built the end result will be the same as if we had copied en/docs/**
into fr/docs
without overwriting any existing files.
More information about templates here.
More information about blocks here.