-
Notifications
You must be signed in to change notification settings - Fork 3
/
typedoc.config.cjs
45 lines (34 loc) · 1.2 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
// @ts-check
const { repository, name } = require('./package.json');
const { TYPESCRIPT_CONFIGURATIONS } = require('./scripts/getTsConfigFiles.cjs');
const repositoryURL = repository.url.replace(/\/?\.git$/i, '');
/** @type {Partial<import('typedoc').TypeDocOptions>} */
var configuration = {
/**
* The barrel file exports everything consumers should currently know about.
* Perhaps in future we may want to also document contrib/ packages.
*/
entryPoints: ['./src/index.mts'],
gitRemote: repositoryURL,
disableGit: false,
/** Not sure how you would even localize TSDoc... */
htmlLang: 'en',
includeVersion: true,
navigationLinks: {
/** Link to https://typedi.js.org/ */
home: '/',
},
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
sourceLinkTemplate: `${repositoryURL}/blob/{gitRevision}/{path}#L{line}`,
/** Use the mxssfd theme. */
plugin: ['@mxssfd/typedoc-theme'],
theme: 'my-theme',
name,
/** The README is included in the index.html page. */
readme: 'README.md',
tsconfig: TYPESCRIPT_CONFIGURATIONS.Spec,
out: './docs/static/api-reference/',
pretty: true,
titleLink: repository.url,
};
module.exports = configuration;