diff --git a/src/utils/docs.tsx b/src/utils/docs.tsx index 7f5274b1..212c06a4 100644 --- a/src/utils/docs.tsx +++ b/src/utils/docs.tsx @@ -67,7 +67,10 @@ async function _getDocs( slugOfInterest: string[] | null, slugOnly = false, ): Promise { - const files = await crawl(root, (dir) => MARKDOWN_REGEX.test(dir)) + const files = await crawl( + root, + (dir) => !dir.includes('node_modules') && MARKDOWN_REGEX.test(dir), + ) // console.log('files', files) const docs = await Promise.all(