Skip to content

Commit

Permalink
Fix sidebar entries in nested folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Web-eWorks committed Aug 12, 2024
1 parent 4cd9220 commit 0625014
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/.vitepress/cache
/.vitepress/dist
/.obsidian
3 changes: 2 additions & 1 deletion .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default {
},

markdown: {
config: mdConfig
config: mdConfig,
theme: 'material-theme-palenight'
},

vite: {
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/site-structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const spaceship = (a, b) => {
}

export function scrapeSidebars(dir) {
const files = fg.sync([ dir + '/*.md' ])
const files = fg.sync([ dir + '/**/*.md' ])

var sidebarList = []

Expand Down
4 changes: 4 additions & 0 deletions categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"text": "Uncategorized",
"collapsible": true
},
"content_creation": {
"text": "Content Creation",
"collapsible": true
},
"3d_asset_creation": {
"text": "3D asset creation",
"collapsible": true
Expand Down

0 comments on commit 0625014

Please sign in to comment.