vitepress: generate sidebar by md files automatically

This commit is contained in:
Ruabbit
2024-12-06 13:14:44 +08:00
parent 3456957e9c
commit dfa38414df
6 changed files with 213 additions and 97 deletions
+18
View File
@@ -5,6 +5,7 @@
"packages": {
"": {
"devDependencies": {
"@types/node": "^18.0.0",
"vitepress": "^1.5.0"
}
},
@@ -1136,6 +1137,16 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "18.19.67",
"resolved": "https://registry.npmmirror.com/@types/node/-/node-18.19.67.tgz",
"integrity": "sha512-wI8uHusga+0ZugNp0Ol/3BqQfEcCCNfojtO6Oou9iVNGPTL6QNSdnUdqq85fRgIorLhLMuPIKpsN98QE9Nh+KQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~5.26.4"
}
},
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
@@ -2204,6 +2215,13 @@
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"dev": true,
"license": "MIT"
},
"node_modules/unist-util-is": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",