Skip to content

Commit

Permalink
feat(docz-core): make docz parse components in index files by default (
Browse files Browse the repository at this point in the history
  • Loading branch information
esturcke authored and rakannimer committed Oct 30, 2019
1 parent 8acbe18 commit 316d61a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/docz-core/src/config/docz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const doczRcBaseConfig = {
/license.md/i,
],
filterComponents: (files: string[]) =>
files.filter(filepath => /\/[A-Z]\w*\.(js|jsx|ts|tsx)$/.test(filepath)),
files.filter(filepath =>
/\/[A-Z]\w*(\/index)?\.(js|jsx|ts|tsx)$/.test(filepath)
),
}

export const getBaseConfig = (
Expand Down

0 comments on commit 316d61a

Please sign in to comment.