From 56967dad445237f71b8dfb395e64b662587c7927 Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Wed, 26 Aug 2026 12:46:24 -0400 Subject: [PATCH] docs: use theme githubHref/logoHref, drop the SocialIcons override @nebari/starlight 0.3.0 adds a githubHref option, so the local SocialIcons.astro dedupe workaround (and the social/components config it needed) is no longer necessary. Also set logoHref so the header logo returns users to the packs portal, matching the rest of the pack fleet. Co-Authored-By: Claude Fable 5 --- docs/site/astro.config.mjs | 19 +++++---- docs/site/package-lock.json | 8 ++-- docs/site/package.json | 2 +- docs/site/src/components/SocialIcons.astro | 46 ---------------------- 4 files changed, 14 insertions(+), 61 deletions(-) delete mode 100644 docs/site/src/components/SocialIcons.astro diff --git a/docs/site/astro.config.mjs b/docs/site/astro.config.mjs index 6a79c98..d2ee8fd 100644 --- a/docs/site/astro.config.mjs +++ b/docs/site/astro.config.mjs @@ -14,17 +14,16 @@ export default defineConfig({ title: 'Nebari Frames', description: 'Registry and exchange for Frames: scoped, text-based context artifacts for AI conversations.', - plugins: [nebari()], - social: [ - { icon: 'github', label: 'GitHub', href: 'https://github.com/nebari-dev/nebari-frames' }, + // Shared Nebari identity (brand colors, fonts, logo, favicon, footer, and + // GitHub social link) comes from the @nebari/starlight theme plugin. The + // header logo returns users to the pack catalog and the GitHub icon + // opens this pack's repository. + plugins: [ + nebari({ + logoHref: 'https://packs.nebari.dev/', + githubHref: 'https://github.com/nebari-dev/nebari-frames', + }), ], - // The nebari() plugin above always prepends its own default GitHub - // link (the org, not this repo) ahead of `social`; this override - // renders the deduplicated, repo-specific list instead. See the - // component for details. - components: { - SocialIcons: './src/components/SocialIcons.astro', - }, sidebar: [ { label: 'Documentation', diff --git a/docs/site/package-lock.json b/docs/site/package-lock.json index 604d5bb..37aa1af 100644 --- a/docs/site/package-lock.json +++ b/docs/site/package-lock.json @@ -7,7 +7,7 @@ "name": "nebari-frames-docs-site", "dependencies": { "@astrojs/starlight": "^0.41.3", - "@nebari/starlight": "^0.2.1", + "@nebari/starlight": "^0.3.0", "astro": "^7.0.6", "unist-util-visit": "^5.1.0" } @@ -1645,9 +1645,9 @@ } }, "node_modules/@nebari/starlight": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@nebari/starlight/-/starlight-0.2.1.tgz", - "integrity": "sha512-XvpOJVlBwT1xhSpyqStNncBGuqowpWuqXpZwtv8xrOBCjz2VPNw2R4cchezb66lTHWqE5oohyTyOL3YrR+TBLw==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@nebari/starlight/-/starlight-0.3.0.tgz", + "integrity": "sha512-c7GXiRJrr+pac5kOTxvDI20eGWapet03gMyCQQJLt0n1oTqylTWcMLcN/JzCH4saQtm+RYz2tcbcseDE9CVCqw==", "license": "Apache-2.0", "peerDependencies": { "@astrojs/starlight": ">=0.33.0 <1.0.0", diff --git a/docs/site/package.json b/docs/site/package.json index a11abaf..fe8fd59 100644 --- a/docs/site/package.json +++ b/docs/site/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@astrojs/starlight": "^0.41.3", - "@nebari/starlight": "^0.2.1", + "@nebari/starlight": "^0.3.0", "astro": "^7.0.6", "unist-util-visit": "^5.1.0" } diff --git a/docs/site/src/components/SocialIcons.astro b/docs/site/src/components/SocialIcons.astro deleted file mode 100644 index 5291611..0000000 --- a/docs/site/src/components/SocialIcons.astro +++ /dev/null @@ -1,46 +0,0 @@ ---- -// Overrides the shared @nebari/starlight theme's header social links. -// -// The theme's `nebari()` Starlight plugin always prepends its own default -// GitHub link (https://github.com/nebari-dev) ahead of whatever `social` -// config this site provides (see the plugin's `config:setup` hook in -// https://github.com/nebari-dev/starlight), so simply setting `social` in -// astro.config.mjs renders two GitHub icons instead of one. Drop that -// specific org-level default once a more specific GitHub link (this repo) -// is also configured; everything else in `social` passes through unchanged. -import config from 'virtual:starlight/user-config'; - -const NEBARI_ORG_GITHUB = 'https://github.com/nebari-dev'; - -const configured = config.social ?? []; -const hasRepoSpecificGithub = configured.some( - (link) => link.icon === 'github' && link.href !== NEBARI_ORG_GITHUB -); -const links = hasRepoSpecificGithub - ? configured.filter((link) => link.href !== NEBARI_ORG_GITHUB) - : configured; ---- - -{ - links.map(({ label, href, icon }) => ( - - {label} - {icon === 'github' ? ( - - ) : null} - - )) -} - -