-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypedoc.config.en.mjs
More file actions
42 lines (41 loc) · 1.51 KB
/
Copy pathtypedoc.config.en.mjs
File metadata and controls
42 lines (41 loc) · 1.51 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
const formatDate = `${new Date().getFullYear()}-${String(new Date().getMonth() + 1).padStart(2, "0")}-${String(new Date().getDate()).padStart(2, "0")}`;
export default {
// 这里设置头部标题
name: "API Docs",
entryPointStrategy: "packages",
entryPoints: ["./packages/react-ui", "./packages/store", "./packages/web-components"],
packageOptions: {
entryPoints: ["src/index.ts"],
readme: "README.md",
includeVersion: true,
exclude: ["**/__tests__/**/*", "**/e2e/**/*", "**/node_modules/**/*"],
},
out: "docs/en",
plugin: ["typedoc-plugin-rename-defaults", "typedoc-plugin-mdn-links", "typedoc-plugin-replace-text"],
exclude: ["node_modules", "__tests__/**/*", "packages/*/{__tests__,e2e}/**/*"],
// includeVersion: true,
hideGenerator: true,
disableSources: false,
tsconfig: "tsconfig.json",
readme: "README.md",
githubPages: true,
gitRemote: "origin",
highlightLanguages: ["typescript", "javascript", "css", "html", "json", "scss", "jsx", "tsx", "bash"],
replaceText: {
inCodeCommentText: true,
inCodeCommentTags: true,
inMarkdown: false,
replacements: [
// {
// pattern:"",
// replace: '',
// },
],
},
lang: "en",
navigationLinks: {
Examples: "https://github.com/freeshineit/pnpm-workspace/tree/main/site",
Github: "https://github.com/freeshineit/pnpm-workspace",
},
customFooterHtml: `<p style="text-align: center;">Copyright © ${formatDate} <a href="https://github.com/freeshineit" target="_blank">ShineShao</a></p>`,
};