Repository navigation
Expand file tree
/
Copy pathtypedoc.js
More file actions
72 lines (65 loc) · 2.22 KB
/
Copy pathtypedoc.js
File metadata and controls
72 lines (65 loc) · 2.22 KB
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
const {
CATEGORY_ORDER,
DEFAULT_CATEGORY
} = require('./scripts/typedoc-plugin.js');
module.exports = {
// Document what the package actually exports. Pointing TypeDoc at `src/`
// instead made it expand every file in the tree, which pulled internal
// modules (transaction manager, storage, worker, http) into the reference.
entryPoints: ['./src/index.ts'],
entryPointStrategy: 'resolve',
out: './docs/',
readme: './README.md',
name: 'Auth0 SPA SDK',
cleanOutputDir: true,
plugin: ['./scripts/typedoc-plugin.js'],
// Keep the reference to the public surface.
excludePrivate: true,
excludeProtected: true,
excludeInternal: true,
// Without this, every error class inherits Error's `stack`, `captureStackTrace`
// and `prepareStackTrace` from TypeScript's own lib types. Errors and clients
// re-exported from `@auth0/auth0-auth-js` are part of our public surface, so
// only the TypeScript lib and other third-party packages count as external.
excludeExternals: true,
externalPattern: [
'**/node_modules/typescript/**',
'**/node_modules/@types/**'
],
// Note: no blanket `node_modules` exclusion here. `exclude` is matched against
// a symbol's declaration file, so excluding node_modules would also drop the
// error classes we deliberately re-export from `@auth0/auth0-auth-js`.
exclude: [
'**/__tests__/**/*',
'**/__mocks__/**/*',
'**/cypress/**/*',
'src/worker/**/*'
],
// Group the landing page and sidebar by category rather than by TypeScript
// kind, so readers see "Clients" before a wall of interfaces. Categories come
// from `@category` tags in `src/`; see `scripts/typedoc-plugin.js`.
categorizeByGroup: false,
categoryOrder: CATEGORY_ORDER,
defaultCategory: DEFAULT_CATEGORY,
navigation: {
includeCategories: true,
includeGroups: false
},
sort: ['kind', 'alphabetical'],
kindSortOrder: [
'Function',
'Class',
'Interface',
'TypeAlias',
'Enum',
'Variable'
],
hideGenerator: true,
// Types are self-describing in signatures; repeating them in every heading
// makes long method titles hard to scan.
hideParameterTypesInTitle: true,
searchInComments: true,
compilerOptions: {
skipLibCheck: true
}
};