Skip to content

Simplify sidebar processing#839

Open
marc1404 wants to merge 3 commits intogardener:masterfrom
marc1404:docs/732-simplify-sidebar-processing
Open

Simplify sidebar processing#839
marc1404 wants to merge 3 commits intogardener:masterfrom
marc1404:docs/732-simplify-sidebar-processing

Conversation

@marc1404
Copy link
Member

@marc1404 marc1404 commented Feb 6, 2026

How to categorize this PR?

/kind cleanup enhancement task

What this PR does / why we need it:

In the context of #732, we noticed that some documentation pages are not visible in the sidebar.
This problem occurs in the Documentation section of the page, but not in other sections such as Blog or Community, which have distinct sidebars.

While reviewing the sidebar processing logic, I noticed that pages go missing after the call to promoteSingleChildLeafs, which is only used for the Documentation sidebar, not others. As a simplification measure, I propose removing this logic entirely. If we don't want single-child leafs in certain parts of the documentation, that structure should be changed at the source location (e.g., https://github.com/gardener/gardener/tree/master/docs/usage/reference, https://github.com/gardener/gardener/tree/master/docs/usage/gardener).

Additionally, I updated the Markdown for two pages to use a more consistent heading structure (starting with h1, etc.) and made a few minor improvements, since these pages weren't visible in the rendered version before.

Which issue(s) this PR fixes:
Fixes #732

Special notes for your reviewer:

I performed a manual side-by-side check between the sidebar rendered with the branch of this PR and our deployed version on gardener.cloud. Only new pages are now visible that were previously not visible. Otherwise, the structure remains unchanged, and no page is lost.

Supersedes:

ℹ️ @LibenHailu

/cc @klocke-io @n-boshnakov

@marc1404 marc1404 requested a review from a team as a code owner February 6, 2026 12:46
@gardener-prow gardener-prow bot added kind/cleanup Something that is not needed anymore and can be cleaned up kind/enhancement Enhancement, improvement, extension kind/task General task cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 6, 2026
@gardener-github-actions gardener-github-actions bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Feb 6, 2026
@github-actions github-actions bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. and removed ok-to-test Indicates a non-member PR verified by an org member that is safe to test. labels Feb 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

🚀 Preview Deployed

Your preview is being built and will be available at:
https://documentation-demo.gardener.cloud/pr-preview/pr-839/

Note: The preview will only be available after the GitHub Pages deployment completes in the demo repository.

To view the deployment status, visit: https://github.com/gardener/documentation-demo/actions

Copy link
Contributor

@n-boshnakov n-boshnakov left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2026
@gardener-prow
Copy link

gardener-prow bot commented Feb 6, 2026

LGTM label has been added.

DetailsGit tree hash: beb50f53759c08150171590682ee28f6a847726c

@gardener-prow
Copy link

gardener-prow bot commented Feb 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n-boshnakov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/cleanup Something that is not needed anymore and can be cleaned up kind/enhancement Enhancement, improvement, extension kind/task General task lgtm Indicates that a PR is ready to be merged. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Community Roles page is not showing up in the sidebar

2 participants