From e381deb04e1f75e27cdd23c5a1f69d57a638d01f Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Wed, 28 Oct 2026 14:09:28 +0800 Subject: [PATCH] Isolate document collection navigation and search --- apps/docs/src/components/Shell.tsx | 20 ++++++++++++++++++-- apps/docs/src/lib/docs.ts | 4 ++-- content/catalog.json | 1 + 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/apps/docs/src/components/Shell.tsx b/apps/docs/src/components/Shell.tsx index 08f416f..665ea7b 100644 --- a/apps/docs/src/components/Shell.tsx +++ b/apps/docs/src/components/Shell.tsx @@ -29,7 +29,10 @@ export function Navigation({ current?: string; onNavigate?: () => void; }) { - const groups = [...new Set(docs.map((d) => d.group))]; + const collection = docs.find((d) => d.slug === current)?.collection; + const scopedDocs = docs.filter((d) => d.collection === collection); + const groups = [...new Set(scopedDocs.map((d) => d.group))]; + const collections = [...new Set(docs.map((d) => d.collection))]; return (