mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 11:53:10 +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:
@@ -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',
|
||||
},
|
||||
},
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user