Skip to content
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

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

llucax
Copy link
Contributor

@llucax llucax commented Sep 6, 2023

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, but mkdocs-material already provides the feature natively2, so we can just use it instead, as it is much less likely to have issues.

Footnotes

  1. https://github.com/oprypin/mkdocs-section-index/issues/18

  2. 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.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested a review from a team as a code owner September 6, 2023 08:26
@llucax llucax requested review from daniel-zullo-frequenz and removed request for a team September 6, 2023 08:26
@github-actions github-actions bot added part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Sep 6, 2023
@llucax llucax added this to the v0.25.1 milestone Sep 6, 2023
@llucax llucax self-assigned this Sep 6, 2023
@llucax llucax added the type:bug Something isn't working label Sep 6, 2023
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>
Copy link
Contributor

@daniel-zullo-frequenz daniel-zullo-frequenz left a 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

@llucax
Copy link
Contributor Author

llucax commented Sep 8, 2023

Updated with a final fix instead of a workaround.

@llucax
Copy link
Contributor Author

llucax commented Sep 8, 2023

Assuming you've verified that API Reference link is correct, this LGTM

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.

@llucax llucax merged commit d05f12d into frequenz-floss:v0.25.x Sep 8, 2023
@llucax llucax deleted the workaround-mkdocs branch September 8, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

3 participants