From f436a5012574e6c10198ffc4f5e63706db0a96ea Mon Sep 17 00:00:00 2001 From: Jay V Date: Fri, 20 Jun 2025 13:12:35 -0400 Subject: docs: share header --- packages/web/src/components/Header.astro | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'packages/web/src') diff --git a/packages/web/src/components/Header.astro b/packages/web/src/components/Header.astro index a5ade7ec5..396200a3e 100644 --- a/packages/web/src/components/Header.astro +++ b/packages/web/src/components/Header.astro @@ -1,5 +1,6 @@ --- -import config from 'virtual:starlight/user-config'; +import config from '../../config.mjs'; +import astroConfig from 'virtual:starlight/user-config'; import { Icon } from '@astrojs/starlight/components'; import { HeaderLinks } from 'toolbeam-docs-theme/components'; import Default from 'toolbeam-docs-theme/overrides/Header.astro'; @@ -8,8 +9,8 @@ import SiteTitle from '@astrojs/starlight/components/SiteTitle.astro'; const path = Astro.url.pathname; -const links = config.social || []; -const { headerLinks } = globalThis.toolbeamDocsThemeConfig ?? {}; +const links = astroConfig.social || []; +const headerLinks = config.headerLinks; --- @@ -19,11 +20,11 @@ const { headerLinks } = globalThis.toolbeamDocsThemeConfig ?? {};
-{ - headerLinks?.map(({ name, url }) => ( - {name} - )) -} + { + headerLinks?.map(({ name, url }) => ( + {name} + )) + }
{ -- cgit v1.2.3