Skip to content

Conversation

@craig-osterhout
Copy link
Contributor

@craig-osterhout craig-osterhout commented Sep 19, 2025

Description

Change how the section drop-down arrows are rendered in the side-nav.

Currently, they generate for any folder, even if it just contains an index. To not generate the arrow, the index would have to be taken out of the folder and renamed as the folder.

This change now counts how many children under the index, and only generates the arrow if it has children (that aren't hidden from the nav).

For example, see how there is an arrow for the mcp gateway, but it expands to nothing.
Current: https://docs.docker.com/ai/mcp-gateway/
Updated: https://deploy-preview-23436--docsdocker.netlify.app/ai/mcp-gateway/

Related issues or tickets

Reviews

  • Editorial review

Signed-off-by: Craig <craig.osterhout@docker.com>
@netlify
Copy link

netlify bot commented Sep 19, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit c2efec7
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/68cde034d84ac200089d5b06
😎 Deploy Preview https://deploy-preview-23436--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the hugo Updates related to hugo label Sep 19, 2025
@craig-osterhout craig-osterhout requested a review from a team September 19, 2025 23:01
Copy link
Member

@usha-mandya usha-mandya left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing this

@craig-osterhout craig-osterhout merged commit 466db49 into docker:main Sep 22, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hugo Updates related to hugo status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants