Collapse docs sidebar category when expanding another category

This commit is contained in:
dannykng committed 2022-08-02 22:19:27 -07:00
1 parent da1c5ccde8
commit f035e4d3d7
1 file changed
+6
+6
View File
@@ -15,6 +15,11 @@ module.exports = {
onBrokenLinks: 'ignore',
themes: ['docusaurus-theme-search-typesense'],
themeConfig: {
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
colorMode: {
// "light" | "dark"
defaultMode: 'dark',
@@ -191,6 +196,7 @@ module.exports = {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/supabase/supabase/edit/master/web',
breadcrumbs: false,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),