Skip to content

Commit 015bc4d

Browse files
committed
build: update API generator
1 parent ccd2cc5 commit 015bc4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/docgen.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const pkg = require('./../package.json')
77

88
module.exports = {
99
componentsRoot: 'src/components', // the folder where CLI will start searching for components.
10-
components: '**/[A-Z]*.ts', // the glob to define what files should be documented as components (relative to componentRoot)
10+
components: [
11+
'**/[A-Z]*.ts',
12+
'!**/[A-Z]*.spec.ts'
13+
],
14+
// the glob to define what files should be documented as components (relative to componentRoot)
1115
outDir: 'docs/api', // folder to save components docs in (relative to the current working directry)
1216
getDocFileName: (componentPath) =>
1317
componentPath.replace(/\.ts$/, '.md'), // specify the name of the input md file

0 commit comments

Comments
 (0)