From 5c6a16c3afe97311dc90ca8f18013240f6144a69 Mon Sep 17 00:00:00 2001 From: chenhaoli Date: Tue, 18 Jan 2022 00:24:29 +0800 Subject: [PATCH] fix(types): missing `sidebarDepth` at default theme config --- packages/@vuepress/types/src/theme-default.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/@vuepress/types/src/theme-default.ts b/packages/@vuepress/types/src/theme-default.ts index e868dcdbb6..7a63fb0015 100644 --- a/packages/@vuepress/types/src/theme-default.ts +++ b/packages/@vuepress/types/src/theme-default.ts @@ -133,6 +133,12 @@ export type DefaultThemeConfig = { | false /* @see https://vuepress.vuejs.org/theme/default-theme-config.html#disabling-the-sidebar */ | SidebarConfigArray | SidebarConfig4Multiple; + /** + * Sidebar's depth, set to 0 to disable collapsable sidebar links. + * + * @default 1 + */ + sidebarDepth?: number; /** * Enable built-in search *