-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unusual navigation behavior when using insiders with static-i18n plugin #7060
Comments
n.b. this is not specific to I opened the issue against mkdocs-material as the only way I can reproduce is using an insiders build, but it's possible this is a behavior that needs adjusting in the static-i18n plugin. |
Thanks for reporting and the excellent reproduction! I think I have a fix in There are further problems with the way the static-i18n plugin and Material for MkDocs work together. For instance, Material for MkDocs currently follows the approach to set only the top-level We've lately released the projects plugin, which is our take on agnostic multi-project setups, including multi-lingual documentation (although still heavy work in progress). Projects are meant to be loosely coupled and can be languages, versions, you name it – anything. If you open the browser console, you see warning messages generated because the We'll take this intel with us when we go back to the drawing board to see how we can make multi-lingual setups any simpler. We do not officially support the static-i18n plugin, so this is a little out of scope for us. However, if the static-i18n plugin could somehow tell the application where the In the meantime, we're regarding this issue as resolved (please confirm) and will come back to it, as said. |
I will test this out, but it looks like it should fix the problem. Thank you so much for the quick response! We (the rocky project) will be testing out the Projects plugin soon for our wiki.rockylinux.org site, combining multiple distinct team/SIG wikis into a single space. Will definitely share what we come up with. re: the i18n plugin -- agreed. It would be great if that were possible. There are some additional efficiencies which I think might help decrease overall generated HTML size for large multi-lingual sites (ultrabug/mkdocs-static-i18n#295, but I need to get back to the Maintainer...) Thanks again! |
Released as part of 9.5.19+insiders-4.53.7. |
Context
https://github.com/rocky-linux/docs.rockylinux.org/ (mkdocs config)
https://github.com/rocky-linux/documentation/ (content)
Multiple languages supported and translated
Bug description
When using mkdocs-material-insiders with mkdocs-static-i18n plugin, there is nondeterministic behavior when navigating to a path which starts with an ISO 3166 country code.
For example, given a path /desktop/ which has other folders/files underneath it--navigating to this link by clicking on the link in the Nav bar from the index sends the user to /de/ (the index for our German translation), instead of to the /desktop/ page in english. Navigating to the /desktop/ page directly, or from any other page, is seemingly unaffected. Reverting to mkdocs-material (not insiders) causes this behavior to not reproduce.
Related links
n/a
Reproduction
9.5.18+insiders.4.53.6-nondeterministic-navigation-with-i18n.zip
Steps to reproduce
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: