Skip to content

Commit 519f6be

Browse files
committed
feat: update docs
1 parent 2d399e3 commit 519f6be

File tree

6 files changed

+961
-3
lines changed

6 files changed

+961
-3
lines changed

astro.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
// @ts-check
22
import netlify from '@astrojs/netlify'
33
import starlight from '@astrojs/starlight'
4+
import mermaid from 'astro-mermaid'
45
import { defineConfig } from 'astro/config'
56
import unocss from 'unocss/astro'
67

78
// https://astro.build/config
89
export default defineConfig({
910
adapter: netlify(),
1011
integrations: [
12+
mermaid({
13+
theme: 'forest',
14+
autoTheme: true,
15+
}),
1116
unocss(),
1217
starlight({
1318
title: 'Arkcode',
@@ -25,6 +30,14 @@ export default defineConfig({
2530
lang: 'zh-CN',
2631
},
2732
},
33+
plugins: [
34+
35+
],
2836
}),
2937
],
38+
vite: {
39+
ssr: {
40+
noExternal: ['mermaid'],
41+
},
42+
},
3043
})

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"@astrojs/netlify": "^6.5.2",
1717
"@astrojs/starlight": "^0.35.1",
1818
"astro": "^5.6.1",
19+
"astro-mermaid": "^1.2.0",
20+
"mermaid": "^11.12.1",
1921
"sharp": "^0.34.2"
2022
},
2123
"devDependencies": {

0 commit comments

Comments
 (0)