From 575bbd6ea1a516c63ce731483bb60ea1664c94d2 Mon Sep 17 00:00:00 2001 From: Dax Date: Mon, 24 Aug 2026 14:48:26 -0400 Subject: [PATCH] fix(www): update docs section navigation (#44753) --- packages/www/src/docs/components/DocsHeader.astro | 5 +++-- packages/www/src/docs/lib/navigation.ts | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/www/src/docs/components/DocsHeader.astro b/packages/www/src/docs/components/DocsHeader.astro index 4480e83dfc5..b6930553778 100644 --- a/packages/www/src/docs/components/DocsHeader.astro +++ b/packages/www/src/docs/components/DocsHeader.astro @@ -1,11 +1,12 @@ --- -import { docsHref, docsSections } from "../lib/navigation" +import { docsHref, docsSections, getDocsSection } from "../lib/navigation" interface Props { currentSlug: string } const currentSlug = Astro.props.currentSlug +const currentSection = getDocsSection(currentSlug) const searchEnabled = import.meta.env.PROD --- @@ -17,7 +18,7 @@ const searchEnabled = import.meta.env.PROD