mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-15 12:53:31 +08:00
feat(docs): 集成 vitepress-plugin-mermaid 支持 Mermaid 流程图渲染
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3893d1c759
commit
467bc85300
@ -1,4 +1,5 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { withMermaid } from 'vitepress-plugin-mermaid'
|
||||
|
||||
// GitHub-compatible slugify (matches github-slugger algorithm)
|
||||
// Makes heading anchor IDs consistent between VitePress and GitHub rendering
|
||||
@ -175,7 +176,7 @@ const enSidebar = [
|
||||
},
|
||||
]
|
||||
|
||||
export default defineConfig({
|
||||
export default withMermaid(defineConfig({
|
||||
title: 'Claude Code Haha',
|
||||
description: '基于 Claude Code 泄露源码修复的本地可运行版本,支持接入任意 Anthropic 兼容 API',
|
||||
lastUpdated: true,
|
||||
@ -244,4 +245,4 @@ export default defineConfig({
|
||||
copyright: 'Copyright 2026 Claude Code Haha Contributors',
|
||||
},
|
||||
},
|
||||
})
|
||||
}))
|
||||
|
||||
1401
package-lock.json
generated
1401
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -79,7 +79,9 @@
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mermaid": "^11.14.0",
|
||||
"vitepress": "^1.6.3",
|
||||
"vitepress-plugin-mermaid": "^2.0.17",
|
||||
"vue": "^3.5.13"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user