diff --git a/src/components/WarpTopicNav.astro b/src/components/WarpTopicNav.astro index 46f5094..4d91dbb 100644 --- a/src/components/WarpTopicNav.astro +++ b/src/components/WarpTopicNav.astro @@ -39,6 +39,7 @@ const { topics } = Astro.locals.starlightSidebarTopics; const CUSTOM_TOPIC_ICONS: Record = { Agents: true, API: true, + Enterprise: true, }; --- @@ -73,6 +74,27 @@ const CUSTOM_TOPIC_ICONS: Record = { + ) : topic.label === 'Enterprise' ? ( + /* Office building — simple outline: tall rectangle + with window grid and entrance, stroke weight matched + to the other topic icons. */ + + + + + + + + + + ) : ( /* Robot icon — stroke-based outline matching the visual weight of Starlight's other topic icons (laptop, book, @@ -148,7 +170,7 @@ const CUSTOM_TOPIC_ICONS: Record = { display: flex; align-items: center; gap: 0.5rem; - padding: 0 0.125rem; + padding: 0 0.25rem; font-size: var(--sl-text-sm); font-weight: 500; /* `1.25` is just enough to clear Inter's natural ascent + descent diff --git a/src/sidebar.ts b/src/sidebar.ts index dce0e15..98c98b4 100644 --- a/src/sidebar.ts +++ b/src/sidebar.ts @@ -516,9 +516,9 @@ export const sidebarTopics: StarlightSidebarTopicsUserConfig = [ ], }, { - label: 'Enterprise', - link: '/enterprise/', - icon: 'star', + label: 'Enterprise', + link: '/enterprise/', + icon: 'setting', items: [ { label: 'Getting started', @@ -564,10 +564,10 @@ export const sidebarTopics: StarlightSidebarTopicsUserConfig = [ ], }, { - id: 'guides', - label: 'Guides', - link: '/guides/', - icon: 'puzzle', + id: 'guides', + label: 'Guides', + link: '/guides/', + icon: 'rocket', items: [ { slug: 'guides', label: 'Guides' }, {