From 9b0db3bcb196cbf79902a7ed3bb0fdd2d864274e Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Mon, 30 Sep 2024 12:13:03 +0200 Subject: [PATCH] sidebar autocollapse --- documentation/docs/theme.config.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/docs/theme.config.tsx b/documentation/docs/theme.config.tsx index 41295389af..b871caf7d2 100644 --- a/documentation/docs/theme.config.tsx +++ b/documentation/docs/theme.config.tsx @@ -23,6 +23,10 @@ const config: DocsThemeConfig = { dark: 30, light: 30, }, + sidebar: { + defaultMenuCollapseLevel: 1, + autoCollapse: true, + }, }; export default config;