From fab04c5213920297467d06a1bb559dd48d15aac6 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 25 Jan 2023 12:07:42 +0100 Subject: [PATCH] docs: add guide to navbar --- packages/docs/.vitepress/config/en.ts | 5 +++++ packages/docs/.vitepress/config/zh.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/docs/.vitepress/config/en.ts b/packages/docs/.vitepress/config/en.ts index d00e7b46..13e55dcb 100644 --- a/packages/docs/.vitepress/config/en.ts +++ b/packages/docs/.vitepress/config/en.ts @@ -24,6 +24,11 @@ export const enConfig: LocaleSpecificConfig = { nav: [ // { text: 'Config', link: '/config/' }, // { text: 'Plugins', link: '/plugins/' }, + { + text: 'Guide', + link: '/core-concepts/', + activeMatch: '^/core-concepts/', + }, { text: 'API', link: '/api/', activeMatch: '^/api/' }, { text: 'Cookbook', link: '/cookbook/', activeMatch: '^/cookbook/' }, { diff --git a/packages/docs/.vitepress/config/zh.ts b/packages/docs/.vitepress/config/zh.ts index 94bf820b..60b62f88 100644 --- a/packages/docs/.vitepress/config/zh.ts +++ b/packages/docs/.vitepress/config/zh.ts @@ -27,6 +27,11 @@ export const zhConfig: LocaleSpecificConfig = { nav: [ // { text: 'Config', link: '/config/' }, // { text: 'Plugins', link: '/plugins/' }, + { + text: '指南', + link: '/zh/core-concepts/', + activeMatch: '^/zh/core-concepts/', + }, { text: 'API', link: '/zh/api/', activeMatch: '^/zh/api/' }, { text: '手册', link: '/zh/cookbook/', activeMatch: '^/zh/cookbook/' }, { -- 2.47.2