vitepress plugin mindmap
npm install @dhlx/vitepress-plugin-mindmap
``bash
npm install @dhlx/vitepress-plugin-mindmap
`
Add the plugin to your VitePress config file (docs/.vitepress/config.js or docs/.vitepress/config.ts):
`js
import { defineConfig } from 'vitepress'
import withMindMap from '@dhlx/vitepress-plugin-mindmap'
export default withMindMap(defineConfig({
title: "VitePress Mindmap",
description: "Mindmap integration example",
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
],
sidebar: [
{
text: 'Examples',
items: []
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/LiDengHui/vitepress-plugin-mindmap' }
]
}
}))
`
#### Method 1: Image Syntax (External Mindmaps)
`markdownImage Syntax
!Sample Mindmap{mindmap}
`
#### Method 2: Code Fence Syntax (Inline Definition)
``markdownCode Fence Syntax
`mindmapCore Features
- Mindmap Integration
- Drag & Zoom
- Theme Support
- Dark Mode
- Light Mode
- yarn add vitepress-plugin-mindmap
- pnpm add vitepress-plugin-mindmapUse Cases
1. Technical Documentation
2. Project Planning
3. Knowledge Organization
4. Meeting Notes
`
```
[MIT]