Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 316d61a

Browse files
esturckerakannimer
authored andcommitted
feat(docz-core): make docz parse components in index files by default (#1215)
1 parent 8acbe18 commit 316d61a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/docz-core/src/config/docz.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export const doczRcBaseConfig = {
2626
/license.md/i,
2727
],
2828
filterComponents: (files: string[]) =>
29-
files.filter(filepath => /\/[A-Z]\w*\.(js|jsx|ts|tsx)$/.test(filepath)),
29+
files.filter(filepath =>
30+
/\/[A-Z]\w*(\/index)?\.(js|jsx|ts|tsx)$/.test(filepath)
31+
),
3032
}
3133

3234
export const getBaseConfig = (

0 commit comments

Comments
 (0)