You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web/starlight): render top-level link-only sidebar entries as leaf links (#2182)
* test(cli): add dockerized sshd fixture for deploy SSH tests
Two openssh-server containers (ports 22022/22023) plus lifecycle
helpers. Deterministic test keypair committed to the repo for
reproducibility; no production value.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(web/starlight): render top-level link-only sidebar entries as leaf links
The sidebar loader unconditionally wrapped every top-level entry as
`{ label, collapsed, items }`, so any entry without an `items` array (or
with an empty one) rendered as a collapsible group header with no children
and discarded its `link`. Glossary hit this on the v4-0-0-snapshot sidebar:
`{"label": "Glossary", "link": "/v4-0-0-snapshot/glossary/"}` rendered as
an unclickable stub in the nav, even though the page built and was
reachable by URL.
Fix: when a top-level entry has a `link` and no children, pass it through
as `{ label, link }` so Starlight renders it as a leaf. Groups with
children continue to be wrapped as before.
Verified against a clean develop build: Glossary now renders
`<a href="/v4-0-0-snapshot/glossary/">` in the sidebar HTML.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments