Replies: 2 comments 4 replies
-
Besides linked content tabs, there's currently no global switch, no. You can implement this yourself in JavaScript, but YMMV. |
Beta Was this translation helpful? Give feedback.
-
If I understand you correctly, you want a global version switch that would change the current URL path to a different path based on the language, and the docs with different languages are in different directories. If you're not using In our site we're using it to switch between the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a built-in way to setup a global programming language switcher?
We have created a docs site with a large number of MD files (1000+) with API refs and code examples. Currently in only one programming language. But want to add more, up to 4 more langs.
The docs are all generated. The current structure organises in folders named by language.
I think Material for MKdocs supports tabbed code blocks but these docs also have property and method names as inline code. So tabs start getting clunky.
So ideally there's a global switch.
Any suggestion on how to easily implement this using existing plug-ins and features?
Beta Was this translation helpful? Give feedback.
All reactions