Skip to content

Commit

Permalink
fix: exclude node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Oct 31, 2024
1 parent ff5f6b4 commit 0577670
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async function _getDocs(
slugOfInterest: string[] | null,
slugOnly = false,
): Promise<Doc[]> {
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(
Expand Down

0 comments on commit 0577670

Please sign in to comment.