feat(docs): 集成 vitepress-plugin-mermaid 支持 Mermaid 流程图渲染

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
程序员阿江(Relakkes)
2026-04-16 11:26:29 +08:00
parent 3893d1c759
commit 467bc85300
3 changed files with 1406 additions and 2 deletions
+3 -2
View File
@@ -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',
},
},
})
}))