-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypedoc.js
58 lines (56 loc) · 1.96 KB
/
typedoc.js
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
import { OptionDefaults } from "typedoc";
/** @type {Partial<import("typedoc").TypeDocOptions>} */
const config = {
plugin: [
// Generate markdown output
"typedoc-plugin-markdown",
// Options to add `@source` tag in tsdoc, to include the source code in the out file
"typedoc-plugin-inline-sources",
// Add frontmatter headers to mdx file
"typedoc-plugin-frontmatter",
// Custom scripts (frontmatter + vocs sidebar generation + external dependencies links)
"./docs/vocs-frontmatter.js",
"./docs/vocs-sidebar.js",
"./docs/replace-external.js",
],
entryPoints: ["sdk/core", "sdk/react", "sdk/components"],
entryPointStrategy: "packages",
packageOptions: {
entryPoints: [
// top level entry points,
"src/index.ts",
// Core SDK custom entry points
"src/actions/index.ts",
"src/interactions/index.ts",
// Components entry points
"src/components.ts",
],
},
out: "./generated-docs/",
fileExtension: ".mdx",
// Add custom tags definition
blockTags: [
// All the previous typedoc supported tags
...OptionDefaults.blockTags,
// Support the description tag, for frontmatter usage,
"@description",
],
// Module is too fat, and members too verbose, should find a mix
outputFileStrategy: "members",
excludeScopesInPaths: true,
excludeExternals: true,
categorizeByGroup: true,
// Tell that this will be in a subfolder of the main docs
publicPath: "/wallet-sdk/references",
// Stylisation
// If set to true, should use @link in the comment to reference param types and stuff
useCodeBlocks: false,
expandObjects: true,
expandParameters: false,
typeDeclarationVisibility: "compact",
includeVersion: true,
readme: "none",
// Frontmatter
frontmatterCommentTags: ["description"],
};
export default config;