This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
typedoc.config.cjs
50 lines (50 loc) · 1.62 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
/** @type { import('typedoc').TypeDocOptionMap & import('typedoc-plugin-replace-text').Config } */
module.exports = {
name: "Styra OPA TypeScript SDK",
out: "output",
hideGenerator: true,
navigationLinks: {
"Styra OPA SDKs": "https://docs.styra.com/sdk/",
NPM: "https://www.npmjs.com/package/@styra/opa",
GitHub: "https://github.com/StyraInc/opa-typescript",
},
entryPoints: [
"./src",
"./src/lib",
"./src/sdk",
"./src/sdk/models/components",
"./src/sdk/models/errors",
"./src/sdk/models/operations",
],
excludeInternal: true,
excludePrivate: true,
excludeProtected: true,
entryPointStrategy: "resolve",
plugin: ["typedoc-plugin-replace-text", "typedoc-plugin-extras"],
favicon: "./.typedoc/favicon.ico",
replaceText: {
replacements: [
{ pattern: "# OPA Typescript SDK", replace: "" },
{
pattern: `> \\*\\*Note\\*\\*: For low-level SDK usage, see the sections below.`,
replace: "",
},
{
// this captures all links to speakeasy's generated docs
pattern: "docs/sdks/opaapiclient/README\\.md",
replace: "classes/sdk.OpaApiClient.html",
},
{ pattern: "#executepolicy\\)", replace: "#executePolicy)" },
{
pattern: "#executepolicywithinput\\)",
replace: "#executePolicyWithInput)",
},
{
pattern:
"For supported JavaScript runtimes, please consult \\[RUNTIMES\\.md\\]\\(RUNTIMES\\.md\\)\\.",
replace:
"See [the repository docs](https://github.com/StyraInc/opa-typescript/blob/main/RUNTIMES.md) for supported JavaScript runtimes.",
},
],
},
};