Skip to content

Sidebar navigation consolidation#345

Draft
gregnazario wants to merge 6 commits intomainfrom
cursor/sidebar-navigation-consolidation-d0ee
Draft

Sidebar navigation consolidation#345
gregnazario wants to merge 6 commits intomainfrom
cursor/sidebar-navigation-consolidation-d0ee

Conversation

@gregnazario
Copy link
Collaborator

Consolidate sidebar landing pages with their section headers to improve navigation and reduce clutter.

Previously, overview pages for sections (e.g., "SDKs Overview") were separate items within their respective groups. This change makes the group header itself (e.g., "SDKs") clickable, directly leading to the overview page, thus removing the redundant entry and streamlining the sidebar structure. This required updating the sidebar type definitions to allow group headers to have a link property.


Slack Thread

Open in Cursor Open in Web

cursoragent and others added 5 commits January 15, 2026 12:52
- Add pnpm override for preact >=10.28.2 to fix high severity JSON VNode
  Injection vulnerability (GHSA-36hm-qxxp-pg3m)
- Add missing rel="noopener noreferrer" to external links in PageFrame.astro
  and MoveReferenceDisabled.astro to prevent potential tabnapping attacks
Added pnpm overrides for lodash and lodash-es to force version 4.17.23,
addressing the security vulnerability in older versions.
- Updated sidebar types to support 'link' property on groups
- Modified groups to use 'link' pointing to overview pages instead of
  having separate overview items
- Applied changes to: SDKs, APIs, Indexer, CLI, Guides, Smart Contracts,
  Nodes, Concepts, AI, and Reference sections
- Fixed pre-existing TypeScript lint errors in sidebar.ts

This improves navigation UX by making section headers directly clickable
to access the overview page, reducing duplicate navigation items.
@cursor
Copy link

cursor bot commented Jan 25, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
aptos-docs Ready Ready Preview, Comment Jan 25, 2026 1:00pm

Request Review

Starlight v0.37.3 does not support having both 'link' and 'items'
properties on sidebar groups. The sidebar schema treats these as
mutually exclusive - an entry is either a link item OR a group item.

This feature (clickable group headers with expandable children) would
require changes to Starlight's sidebar schema or a custom component
override.

Reverting to the original sidebar structure where overview pages remain
as separate items within their groups.

Note: Kept TypeScript lint fixes for src/config/sidebar.ts.
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.

3 participants