-
Notifications
You must be signed in to change notification settings - Fork 0
/
typedoc.config.cjs
40 lines (39 loc) · 1.05 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
const replacements = [
{
pattern: "\/assets\/",
replace: "media://"
}
];
const baseUrl = process.env.BASE_TD_URL;
if(baseUrl !== undefined && baseUrl.trim() !== '') {
const cleaned = baseUrl.replace(/^["']/, '').replace(/["']$/, '');
replacements.push(
{
pattern: "https:\/\/foxxmd.github.io\/logging",
replace: cleaned
}
);
}
/** @type { import('typedoc').TypeDocOptionMap & import('typedoc-plugin-replace-text').Config } */
module.exports ={
name: "@foxxmd/logging Docs",
entryPoints: [
"./src/index.ts",
"./src/factory.ts"
],
sort: ["source-order"],
categorizeByGroup: false,
searchGroupBoosts: {
"Functions": 1.5
},
navigationLinks: {
"Docs": "http://foxxmd.github.io/logging",
"GitHub": "https://github.com/foxxmd/logging"
},
replaceText: {
inIncludedFiles: true,
replacements
},
plausibleSiteDomain: process.env.ANALYTICS ?? '',
plausibleSiteOrigin: process.env.ANALYTICS_DOMAIN ?? '',
}