From c48136c18393545bfd9a760c650f5148b14068d1 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 19 Oct 2026 12:06:23 +0200 Subject: [PATCH] Fix search --- .../components/overrides/VPNavBarSearch.vue | 20 +++++++++++-------- docs/.vitepress/theme/style.css | 4 ---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/.vitepress/theme/components/overrides/VPNavBarSearch.vue b/docs/.vitepress/theme/components/overrides/VPNavBarSearch.vue index 59305c683..c29620b3a 100644 --- a/docs/.vitepress/theme/components/overrides/VPNavBarSearch.vue +++ b/docs/.vitepress/theme/components/overrides/VPNavBarSearch.vue @@ -22,13 +22,15 @@ import FakeInput from '../base/FakeInput.vue' const VPAlgoliaSearchBox = defineAsyncComponent(() => import('vitepress/dist/client/theme-default/components/VPAlgoliaSearchBox.vue')); -const { theme } = useData() +const { theme, page } = useData() const algolia = computed( () => (theme.value.search?.options ?? theme.value.algolia) as DefaultTheme.AlgoliaSearchOptions, ) +const isGuide = computed(() => page.value?.relativePath?.startsWith?.('guide')); + // whether this instance is the one rendering the (hidden) search box const isOwner = ref(false) const shortcutText = ref('') @@ -117,7 +119,7 @@ function isEditingContent(event: KeyboardEvent): boolean {