Skip to content

Commit 0577670

Browse files
committed
fix: exclude node_modules
1 parent ff5f6b4 commit 0577670

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/docs.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ async function _getDocs(
6767
slugOfInterest: string[] | null,
6868
slugOnly = false,
6969
): Promise<Doc[]> {
70-
const files = await crawl(root, (dir) => MARKDOWN_REGEX.test(dir))
70+
const files = await crawl(
71+
root,
72+
(dir) => !dir.includes('node_modules') && MARKDOWN_REGEX.test(dir),
73+
)
7174
// console.log('files', files)
7275

7376
const docs = await Promise.all(

0 commit comments

Comments
 (0)