From ea8f5b26eacb8558a4953dd34d00559b56cb2cbd Mon Sep 17 00:00:00 2001 From: Zhengqbbb <1074059947@qq.com> Date: Fri, 27 Sep 2024 15:32:59 +0800 Subject: [PATCH] docs(site): docsearch add lvl0 title --- docs/.vitepress/config/en.ts | 1 + docs/.vitepress/config/zh.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index c65de7373..e07fe11dd 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -28,6 +28,7 @@ export const enConfig: LocaleSpecificConfig = { indexName: 'cz-git', searchParameters: { facetFilters: ['lang:en-US'], + attributesToHighlight: ['hierarchy.lvl0'], }, }, footer: { diff --git a/docs/.vitepress/config/zh.ts b/docs/.vitepress/config/zh.ts index 50684b0b3..86b40a411 100644 --- a/docs/.vitepress/config/zh.ts +++ b/docs/.vitepress/config/zh.ts @@ -34,6 +34,7 @@ export const zhConfig: LocaleSpecificConfig = { }, searchParameters: { facetFilters: ['lang:zh-CN'], + attributesToHighlight: ['hierarchy.lvl0'], }, }, footer: {