Skip to content

Commit 3963b8a

Browse files
authored
Merge pull request #1 from baofinance/tech
tech section
2 parents 0ae630a + fc7955d commit 3963b8a

23 files changed

Lines changed: 4776 additions & 348 deletions

‎docusaurus.config.ts‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@ const config: Config = {
4949
],
5050
],
5151

52+
plugins: [
53+
[
54+
"@docusaurus/plugin-content-docs",
55+
{
56+
id: "tech-docs",
57+
path: "tech-docs",
58+
routeBasePath: "tech-docs",
59+
sidebarPath: "./sidebars-tech.ts",
60+
editUrl: "https://github.com/baofinance/harbor/tree/main/",
61+
remarkPlugins: [],
62+
rehypePlugins: [],
63+
},
64+
],
65+
],
66+
67+
themes: ["@docusaurus/theme-mermaid"],
68+
5269
// Add port configuration
5370
customFields: {
5471
port: 3001,
@@ -73,6 +90,13 @@ const config: Config = {
7390
position: "left",
7491
label: "Documentation",
7592
},
93+
{
94+
type: "docSidebar",
95+
sidebarId: "techDocsSidebar",
96+
docsPluginId: "tech-docs",
97+
position: "left",
98+
label: "Tech Documentation",
99+
},
76100
{
77101
href: "https://github.com/baofinance/",
78102
label: "GitHub",
@@ -142,6 +166,15 @@ const config: Config = {
142166
theme: prismThemes.github,
143167
darkTheme: prismThemes.dracula,
144168
},
169+
mermaid: {
170+
theme: { light: "default", dark: "dark" },
171+
options: {
172+
flowchart: {
173+
useMaxWidth: true,
174+
htmlLabels: true,
175+
},
176+
},
177+
},
145178
} satisfies Preset.ThemeConfig,
146179
};
147180

0 commit comments

Comments
 (0)