-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
37 lines (32 loc) · 934 Bytes
/
index.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
// eslint-disable @typescript-eslint/no-var-requires
const path = require('path')
const OUT_PATH = path.resolve(process.cwd(), 'public')
const DOCS_PATH = path.resolve(process.cwd(), 'docs')
const README_PATH = path.resolve(process.cwd(), 'readme.md')
const config = {
theme: 'default',
out: OUT_PATH,
readme: README_PATH,
customCss: './theme.css',
includeVersion: true,
footerLastModified: true,
alwaysCreateEntryPointModule: true,
exclude: ['**/*.js', '**/*.test.ts'],
excludeExternals: true,
excludePrivate: true,
excludeProtected: true,
excludeInternal: true,
excludeNotDocumented: true,
plugin: ['typedoc-plugin-extras']
}
try {
const pagesConfig = require(path.resolve(DOCS_PATH, 'index.json'))
if (pagesConfig) {
config.plugin.push('@knodes/typedoc-plugin-pages')
config.pluginPages = {
source: DOCS_PATH,
pages: pagesConfig
}
}
} catch {}
module.exports = config