From f4f540faf7de7098e23361851679c20c8cb99fa5 Mon Sep 17 00:00:00 2001 From: tomdang Date: Fri, 4 Mar 2022 14:40:08 +0800 Subject: [PATCH] sidebar modification --- .vuepress/sidebar/zh.ts | 3 ++- .vuepress/themeConfig.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vuepress/sidebar/zh.ts b/.vuepress/sidebar/zh.ts index ba042b5..7c01707 100644 --- a/.vuepress/sidebar/zh.ts +++ b/.vuepress/sidebar/zh.ts @@ -1,3 +1,4 @@ import { defineSidebarConfig } from "vuepress-theme-hope"; -export const zh = "auto"; +export const zh = defineSidebarConfig({ +}); diff --git a/.vuepress/themeConfig.ts b/.vuepress/themeConfig.ts index 4cb2b70..5a0c979 100644 --- a/.vuepress/themeConfig.ts +++ b/.vuepress/themeConfig.ts @@ -90,7 +90,7 @@ export default defineThemeConfig({ navbar: navbar.zh, // sidebar - sidebar: false, + sidebar: sidebar.zh, headingDepth: 2,