Skip to content

Commit

Permalink
chore: change theme config
Browse files Browse the repository at this point in the history
  • Loading branch information
hacxy committed Jan 14, 2025
1 parent 315d57b commit 844024c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineConfigWithTheme<ThemeConfig>({
{ icon: 'github', link: 'https://github.com/hacxy/vitepress-theme-mild' }
],
sidebar: {
// '/guide/': 'auto',
'/guide/': 'auto',
'/config/': 'auto'
},
footer: {
Expand Down
1 change: 0 additions & 1 deletion packages/theme/src/utils/client/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export function getSidebar(
let sidebar: any = dir ? _sidebar![dir] : [];
if (sidebar === 'auto' && dir) {
sidebar = data.autoSidebar[dir];
sidebar = [];
}

return Array.isArray(sidebar)
Expand Down

0 comments on commit 844024c

Please sign in to comment.