From ca7ae086e8d6e80f6efc969d541b390328a6d143 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 14 Jul 2026 02:41:24 +0300 Subject: fix(website): scope docs search by locale and channel --- website/src/components/Head.astro | 9 +++++++ website/src/components/Search.astro | 52 +++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 website/src/components/Head.astro create mode 100644 website/src/components/Search.astro (limited to 'website/src/components') diff --git a/website/src/components/Head.astro b/website/src/components/Head.astro new file mode 100644 index 00000000..b1214cb1 --- /dev/null +++ b/website/src/components/Head.astro @@ -0,0 +1,9 @@ +--- +import { docsChannel } from '../docs-path'; + +const { head } = Astro.locals.starlightRoute; +const channel = docsChannel(Astro.url.pathname); +--- + +{head.map(({ tag: Tag, attrs, content }) => )} + diff --git a/website/src/components/Search.astro b/website/src/components/Search.astro new file mode 100644 index 00000000..2a31ea24 --- /dev/null +++ b/website/src/components/Search.astro @@ -0,0 +1,52 @@ +--- +import StarlightSearch from '@astrojs/starlight/components/Search.astro'; +import { docsChannel } from '../docs-path'; + +const channel = docsChannel(Astro.url.pathname); +--- + + + + + + + + -- cgit v1.2.3