Skip to content
Discussion options

You must be logged in to vote

I assume you mean the language selector, which is effectively a dropdown with links that should point to separate MkDocs projects. For example, if you want to support en, fr and de, it is recommended that you create the following file structure:

.
├─ en/
│  ├─ docs/
│  └─ mkdocs.yml
├─ fr/
│  ├─ docs/
│  └─ mkdocs.yml
└─ de/
   ├─ docs/
   └─ mkdocs.yml

Then, in each of the mkdocs.yml, add the language selector configuration as explained in the documentation. Note that in each mkdocs.yml, you should have defined site_urlwith the respective language, i.e. <your-site>/en/. The navigation itself is self-contained for each language.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dnylive
Comment options

@sleepwalker2017
Comment options

@squidfunk
Comment options

Answer selected by dnylive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants