-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix mkdocs navigation bar API link #642
Conversation
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
3cf6c77
to
56ceb32
Compare
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>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
51382d4
56ceb32
to
51382d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming you've verified that API Reference
link is correct, this LGTM
Updated with a final fix instead of a workaround. |
Yeah, it is, you can also look at the docs-site artifact from the Test documentation website generation job to see if it renders properly. It's a bit of work but it is an option :) Merging. |
The
section-index
plugin has a bug1 that causes the navigation bar to display a wrong text for the API Reference link. There is a fix for it, butmkdocs-material
already provides the feature natively2, so we can just use it instead, as it is much less likely to have issues.Footnotes
https://github.com/oprypin/mkdocs-section-index/issues/18 ↩
https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages
Fixes The API documentation now is called "sdk" in the top navigation bar #640. ↩