Skip to content

Commit

Permalink
Merge pull request #19 from 2gis/fix-documentalist
Browse files Browse the repository at this point in the history
Fix reference generation for documentalist
  • Loading branch information
myshov authored Jul 4, 2023
2 parents cb467f1 + fc29a3c commit 92c342f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build/documentalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@ mkdirSync('dist', {
recursive: true,
});

const excludePaths = [
'src/control/',
'src/external/',
'src/utils/',
'src/defaultOptions.ts',
'src/eventSource.ts',
'src/loader.ts',
'src/poiGroups.ts',
'src/realtyScene.ts',
];

new Documentalist()
.use(/\.ts$/, new TypescriptPlugin({ excludePaths: ['src/utils.ts'] }))
.use(/\.ts$/, new TypescriptPlugin({ excludePaths }))
.documentGlobs('src/**/*')
.then((docs) => JSON.stringify(docs))
.then((json) => writeFileSync('dist/docs.json', json))
Expand Down

0 comments on commit 92c342f

Please sign in to comment.