-
Notifications
You must be signed in to change notification settings - Fork 7
/
typedoc.config.cjs
79 lines (77 loc) · 2.13 KB
/
typedoc.config.cjs
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// TypeDoc config for the monorepo to generate API docs
// for PUBLIC or INTERNAL audiences depending on TYPEDOC_MODE.
let baseConfig = {
// To allow TypeDoc to resolve references across packages,
// "declaration" and "declarationMap" in tsconfig.json must be set to true
entryPointStrategy: 'packages',
plugin: ['typedoc-plugin-vue', './typedoc-plugins/typedoc-plugin-expand-type-aliases/index.cjs'],
readme: 'none',
out: 'docs',
};
if (process.env.TYPEDOC_FORMAT === 'MD') {
baseConfig = {
...baseConfig,
plugin: [
'@sisense/typedoc-plugin-markdown',
'typedoc-plugin-vue',
'./typedoc-plugins/typedoc-plugin-expand-type-aliases/index.cjs',
],
githubPages: false,
outputFileStrategy: 'members',
flattenOutputFiles: false,
entryFileName: 'index.md',
indexFileName: 'index.md',
indexPageTitle: 'Compose SDK',
skipIndexPage: false,
excludeGroups: false,
hidePageHeader: true,
hidePageTitle: false,
hideBreadcrumbs: true,
hideInPageTOC: true,
titleTemplate: '{kind} {name}',
readme: 'none',
out: 'docs-md/sdk/modules',
treatWarningsAsErrors: true,
logLevel: 'Info',
hiddenFunctionParameters: [
'deprecatedLegacyContext',
'guid',
'deactivatedMembers',
'backgroundFilter',
'excludeMembers',
],
};
}
if (process.env.TYPEDOC_MODE === 'PUBLIC') {
/** @type {import("typedoc").TypeDocOptionValues} */
module.exports = {
...baseConfig,
name: 'Compose SDK',
entryPoints: [
'packages/sdk-data',
'packages/sdk-ui',
'packages/sdk-ui-preact',
'packages/sdk-ui-angular',
'packages/sdk-ui-vue',
],
hideGenerator: true,
};
} else {
/** @type {import("typedoc").TypeDocOptionValues} */
module.exports = {
...baseConfig,
name: 'Compose SDK [INTERNAL]',
entryPoints: [
'packages/sdk-cli',
'packages/sdk-data',
'packages/sdk-modeling',
'packages/sdk-query-client',
'packages/sdk-ui',
'packages/sdk-ui-preact',
'packages/sdk-ui-angular',
'packages/sdk-ui-vue',
],
hideGenerator: false,
out: 'docs-internal',
};
}