Skip to content

Commit 846c6c5

Browse files
committed
Auto-collapse sidebar categories
The docs sidebar is particularly complex, so this change enables auto-collapsing non-selecting categories to make it less likely that the sidebar will exceed the browser client height.
1 parent e5ae7f9 commit 846c6c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ const config: Config = {
5353
"./src/styles/global.css",
5454
],
5555
themeConfig: {
56+
docs: {
57+
sidebar: {
58+
autoCollapseCategories: true,
59+
},
60+
},
5661
image: "/og-image.png",
5762
colorMode: {
5863
defaultMode: "light",

0 commit comments

Comments
 (0)