Skip to content

Commit

Permalink
Fix reference generation for documentalist
Browse files Browse the repository at this point in the history
  • Loading branch information
myshov committed Jul 4, 2023
1 parent cb467f1 commit fc29a3c
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 fc29a3c

Please sign in to comment.