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