-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
regression: Enabling the plug-in messes up items as written in SUMMARY.md
from mkdocs-literate-nav
#18
Comments
Thanks for the amazing report. |
Thanks for addressing it so quickly! |
I saw in a related mkdocs-material issue comment that the theme already support a similar feature. I'm considering switching to the theme feature, which I guess is less likely to get out of sync. Is there anything this plugin offers that |
The `section-index` plugin has a bug[^1] that causes the navigation bar to display a wrong text for the **API Reference** link. There is a fix for it, but `mkdocs-material` already provides the feature natively[^2], so we can just use it instead, as it is much less likely to have issues. [^1]: oprypin/mkdocs-section-index#18 [^2]: https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
The `section-index` plugin has a bug[^1] that causes the navigation bar to display a wrong text for the **API Reference** link. There is a fix for it, but `mkdocs-material` already provides the feature natively[^2], so we can just use it instead, as it is much less likely to have issues. [^1]: oprypin/mkdocs-section-index#18 [^2]: https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages Fixes #640.
Moving squidfunk/mkdocs-material#5971 here as my next most likely cause of a regression we are experiencing.
Context
After upgrading from
mkdocs-material
9.1.x to 9.2.x we started to see an issue with the nav bar.I'm using
mkdocs-literate-nav
and this plugin to generate the nav bar. If I removemkdocs-section-index
from the plugin list inmkdocs.yml
, the problem also goes away.Bug description
With mkdocs-material 9.1.21 or older, I get this:
(Note the
API Reference
, the correct version)With mkdocs-materia 9.2.0 or newer, I get this:
(Note the
sdk
, the version with an unexpected text)Unless I remove the
mkdocs-section-index
plugin, in which case I get the expected result again.Related links
mkdocs-material
: regression: Navigation bar link name misbehaving squidfunk/mkdocs-material#5971Steps to reproduce
Check http://127.0.0.1:8000/ and observe the "sdk" in the menu (bad).
Check http://127.0.0.1:8000/ and observe the "API Reference" in the menu (good).
Alternative re-enable the plugin and downgrade
mkdocs-material
:Check http://127.0.0.1:8000/ and observe the "API Reference" in the menu (good).
The text was updated successfully, but these errors were encountered: