forked from jupyterlab/lumino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypedoc.js
38 lines (31 loc) · 996 Bytes
/
typedoc.js
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
31
32
33
34
35
36
37
38
const fs = require('fs');
const path = require('path');
function getDirectories(path) {
return fs.readdirSync(path).filter(function (file) {
return fs.statSync(path + '/' + file).isDirectory();
});
}
const packages = getDirectories(path.join(__dirname, 'packages'));
const entryPoints = packages
.flatMap(p => [`packages/${p}/src/index.ts`, `packages/${p}/src/index.tsx`])
.filter(function (path) {
return fs.existsSync(path);
});
const exclude = packages.flatMap(p => [`packages/${p}/tests`]);
module.exports = {
entryPoints,
exclude,
name: '@lumino',
out: 'docs/source/api',
// json: 'docs/source/api.json',
readme: 'README.md',
theme: 'typedoc-theme',
tsconfig: 'tsconfigdoc.json'
// theme: minimal,
// excludePrivate: true,
// excludeProtected: true,
// excludeExternals: true,
// hideGenerator: true
// gitRevision: 'master',
// 'sourcefile-url-prefix': `https://github.com/sinnerschrader/feature-hub/tree/${git.short()}/packages/`,
};