From 11aaa353f84a78fab3f22507162566e9ff62a3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E6=99=93=E4=BA=AE?= <2220124666@qq.com> Date: Thu, 22 Aug 2024 10:43:58 +0800 Subject: [PATCH] docs: Fixed highlighting issues with the top menu --- docs/.vitepress/config/en.ts | 2 +- docs/.vitepress/config/zh.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index ad78798..44fda0e 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -24,7 +24,7 @@ export const en = defineConfig({ function nav(): DefaultTheme.NavItem[] { return [ { text: 'Guide', link: '/guide/' }, - { text: 'Overview', activeMatch: '(guide|charts)', link: '/guide/overview' }, + { text: 'Overview', link: '/guide/overview' }, ] } diff --git a/docs/.vitepress/config/zh.ts b/docs/.vitepress/config/zh.ts index cdf724e..52e840a 100644 --- a/docs/.vitepress/config/zh.ts +++ b/docs/.vitepress/config/zh.ts @@ -49,7 +49,7 @@ export const zh = defineConfig({ function nav(): DefaultTheme.NavItem[] { return [ { text: '指南', link: '/zh/guide/' }, - { text: '图表概览', activeMatch: '(guide|charts)', link: '/zh/guide/overview' }, + { text: '图表概览', link: '/zh/guide/overview' }, ] }