mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-04-20 10:47:37 +08:00
docs: add vitepress-plugin-mermaid for Mermaid diagram rendering
- 添加 vitepress-plugin-mermaid 和 mermaid 依赖 - 更新 VitePress 配置以支持 Mermaid 图表渲染 - 在 sidebar 中添加项目架构文档链接 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import {defineConfig} from 'vitepress'
|
import {defineConfig} from 'vitepress'
|
||||||
|
import {withMermaid} from 'vitepress-plugin-mermaid'
|
||||||
|
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
export default defineConfig({
|
export default withMermaid(defineConfig({
|
||||||
title: "MediaCrawler自媒体爬虫",
|
title: "MediaCrawler自媒体爬虫",
|
||||||
description: "小红书爬虫,抖音爬虫, 快手爬虫, B站爬虫, 微博爬虫,百度贴吧爬虫,知乎爬虫...。 ",
|
description: "小红书爬虫,抖音爬虫, 快手爬虫, B站爬虫, 微博爬虫,百度贴吧爬虫,知乎爬虫...。 ",
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
@@ -43,6 +44,7 @@ export default defineConfig({
|
|||||||
text: 'MediaCrawler使用文档',
|
text: 'MediaCrawler使用文档',
|
||||||
items: [
|
items: [
|
||||||
{text: '基本使用', link: '/'},
|
{text: '基本使用', link: '/'},
|
||||||
|
{text: '项目架构文档', link: '/项目架构文档'},
|
||||||
{text: '常见问题汇总', link: '/常见问题'},
|
{text: '常见问题汇总', link: '/常见问题'},
|
||||||
{text: 'IP代理使用', link: '/代理使用'},
|
{text: 'IP代理使用', link: '/代理使用'},
|
||||||
{text: '词云图使用', link: '/词云图使用配置'},
|
{text: '词云图使用', link: '/词云图使用配置'},
|
||||||
@@ -85,4 +87,4 @@ export default defineConfig({
|
|||||||
{icon: 'github', link: 'https://github.com/NanmiCoder/MediaCrawler'}
|
{icon: 'github', link: 'https://github.com/NanmiCoder/MediaCrawler'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
}))
|
||||||
|
|||||||
1438
package-lock.json
generated
1438
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,8 @@
|
|||||||
"docs:preview": "vitepress preview docs"
|
"docs:preview": "vitepress preview docs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitepress": "^1.3.4"
|
"mermaid": "^11.12.2",
|
||||||
|
"vitepress": "^1.3.4",
|
||||||
|
"vitepress-plugin-mermaid": "^2.0.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user