forked from okta/okta-auth-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypedoc.js
More file actions
30 lines (25 loc) · 764 Bytes
/
typedoc.js
File metadata and controls
30 lines (25 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// https://typedoc.org/guides/installation/#node-module
const TypeDoc = require('typedoc');
// This script currently only generate docs for myaccount module
(async () => {
const app = new TypeDoc.Application();
app.options.addReader(new TypeDoc.TSConfigReader());
app.bootstrap({
// typedoc options here
entryPoints: [
'lib/myaccount/index.ts',
],
name: '@okta/okta-auth-js/myaccount',
readme: 'lib/myaccount/README.md',
githubPages: false,
treatWarningsAsErrors: true,
gitRevision: 'master'
});
const project = app.convert();
if (project) {
// Project may not have converted correctly
const outputDir = 'docs/myaccount';
// Rendered docs
await app.generateDocs(project, outputDir);
}
})();