Skip to content

Commit 53baac8

Browse files
committed
vitepress: Exclude all files not in docs/ from being processed
1 parent 4e3e416 commit 53baac8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.vitepress/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export default defineConfig({
4848
lang: "en-us",
4949

5050
srcDir: ".",
51-
srcExclude: [ '*.md' ].concat(getExcludes()),
51+
srcExclude: [
52+
// Exclude anything that is not in docs
53+
'!(docs)/**/*.md',
54+
// Exclude base-level markdown files
55+
'*.md'
56+
].concat(getExcludes()),
5257
rewrites: {
5358
'docs/:path(.*)': ':path',
5459
},

0 commit comments

Comments
 (0)