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 2 potencial bugs in docs #1878

Merged
merged 2 commits into from
Nov 20, 2024
Merged

Fix 2 potencial bugs in docs #1878

merged 2 commits into from
Nov 20, 2024

Conversation

travisbeckham
Copy link
Collaborator

@travisbeckham travisbeckham commented Nov 18, 2024

Bug 1

Currently, if a section in the Docs sidenav only contains child sections and not any regular pages, the submenu will not be displayed for that section. The submenu should still be displayed in this case.

With this PR, the sidenav has been fixed to show a submenu of a section, if it only contains child sections.

There are currently not any sections in the Docs sidenav that only contain other sections, but I'm fixing this bug just in case we do in the future.

Bug 2

Currently, the section-toc shortcode is incorrectly listing pages that have the unlisted param set.

With this PR, unlisted pages will not be shown when using the section-toc shortcode.

There are currently not any index pages that use the section-toc shortcode and also have unlisted pages.

Signed-off-by: Travis Beckham <[email protected]>
@travisbeckham travisbeckham changed the title Fix docs sidenav bug Fix 2 bugs in docs Nov 19, 2024
@travisbeckham travisbeckham changed the title Fix 2 bugs in docs Fix 2 potencial bugs in docs Nov 19, 2024
Copy link
Member

@kflynn kflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from here! 🙂 Sorry for the delay, too.

@travisbeckham travisbeckham merged commit 5772f48 into main Nov 20, 2024
7 checks passed
@travisbeckham travisbeckham deleted the travis/docs-sidenav branch November 20, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants