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 {