From 6a2098b19953396521389bc29526592ee87634bb Mon Sep 17 00:00:00 2001 From: Colby Mchenry Date: Sun, 24 May 2026 13:27:45 -0500 Subject: [PATCH] feat(site): add Docs & Languages links to the docs header (#377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring the Starlight docs header to parity with the landing nav — now Docs · Languages · GitHub · star pill, in that order. Added via the SocialIcons slot (no full header rebuild, so search/theme/mobile keep working); the text links and star pill are hidden on mobile, where the sidebar already covers navigation. Co-authored-by: Claude Opus 4.7 (1M context) --- site/src/components/SocialIcons.astro | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/site/src/components/SocialIcons.astro b/site/src/components/SocialIcons.astro index a1b3827..752c241 100644 --- a/site/src/components/SocialIcons.astro +++ b/site/src/components/SocialIcons.astro @@ -1,13 +1,18 @@ --- -// Keep Starlight's default social icons (the GitHub link) and append a live -// star-count pill, matching the landing page nav. +// Docs-header right cluster: Docs + Languages text links, Starlight's default +// social icons (the GitHub link), and a live star-count pill — same order as +// the landing nav (Docs · Languages · GitHub · Star). Done here, in the slot we +// already own, to avoid a full header rebuild that could break search/mobile. import Default from '@astrojs/starlight/components/SocialIcons.astro'; import { getStarsLabel } from '../lib/github'; const stars = await getStarsLabel(); +const base = import.meta.env.BASE_URL.replace(/\/$/, ''); const repo = 'https://github.com/colbymchenry/codegraph'; --- +Docs +Languages