From f7f39b8f3231f0699f96afc4c12bf131299c7108 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 10 Jul 2025 11:40:43 +0800 Subject: [PATCH] docs: update docs --- docs/notes/theme/config/markdown.md | 2 +- docs/notes/theme/config/plugins/README.md | 4 +++- docs/notes/theme/guide/chart/echarts.md | 2 +- docs/notes/theme/guide/chart/mermaid.md | 2 +- theme/src/shared/features/markdown.ts | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/notes/theme/config/markdown.md b/docs/notes/theme/config/markdown.md index fc1a125a..f4d812b8 100644 --- a/docs/notes/theme/config/markdown.md +++ b/docs/notes/theme/config/markdown.md @@ -255,7 +255,7 @@ export default defineUserConfig({ --- -::: tip 以下配置字段由 [vuepress-plugin-md-enhance](https://plugin-md-enhance.vuejs.press/zh/) 插件实现。 +::: tip 以下配置字段由 [@vuepress/plugin-markdown-chart](https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-chart/) 插件实现。 ::: ### chartjs diff --git a/docs/notes/theme/config/plugins/README.md b/docs/notes/theme/config/plugins/README.md index 529c5386..cdd1f6ce 100644 --- a/docs/notes/theme/config/plugins/README.md +++ b/docs/notes/theme/config/plugins/README.md @@ -38,7 +38,9 @@ export default defineUserConfig({ - [@vuepress/plugin-markdown-image](https://ecosystem.vuejs.press/zh/plugins/markdown/image.html) - Markdown 图片 - [@vuepress/plugin-markdown-math](https://ecosystem.vuejs.press/zh/plugins/markdown/math.html) - Markdown 数学公式 - [@vuepress/plugin-markdown-include](https://ecosystem.vuejs.press/zh/plugins/markdown/include.html) - Markdown 导入文件 -- [vuepress-plugin-md-enhance](https://plugin-md-enhance.vuejs.press/zh/) - Markdown 增强 +- [@vuepress/plugin-markdown-chart](https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-chart/) - Markdown 图表 + chartjs / echarts / mermaid / flowchart / markmap / plantUML +- [@vuepress/plugin-replace-assets](https://ecosystem.vuejs.press/zh/plugins/tools/replace-assets.html) - 资源链接替换 - [vuepress-plugin-md-power](./markdown-power.md) - Markdown Power - [@vuepress/plugin-git](https://ecosystem.vuejs.press/zh/plugins/development/git.html) - git 提交信息 - [@vuepress/plugin-cache](https://ecosystem.vuejs.press/zh/plugins/tools/cache.html) - 页面编译缓存 diff --git a/docs/notes/theme/guide/chart/echarts.md b/docs/notes/theme/guide/chart/echarts.md index 4dc58a5b..9194f007 100644 --- a/docs/notes/theme/guide/chart/echarts.md +++ b/docs/notes/theme/guide/chart/echarts.md @@ -88,7 +88,7 @@ const option = { 你可以在 [客户端配置文件](https://vuejs.press/zh/guide/configuration.html##使用脚本) 中导入并使用 `defineEchartsConfig` 来自定义 Echarts: ```ts -import { defineEchartsConfig } from 'vuepress-plugin-md-enhance/client' +import { defineEchartsConfig } from '@vuepress/plugin-markdown-chart/client' import { defineClientConfig } from 'vuepress/client' defineEchartsConfig({ diff --git a/docs/notes/theme/guide/chart/mermaid.md b/docs/notes/theme/guide/chart/mermaid.md index 26278139..2947f00c 100644 --- a/docs/notes/theme/guide/chart/mermaid.md +++ b/docs/notes/theme/guide/chart/mermaid.md @@ -89,7 +89,7 @@ export default defineUserConfig({ 中导入并使用 `defineMermaidConfig` 来自定义 Mermaid 配置: ```ts -import { defineMermaidConfig } from 'vuepress-plugin-md-enhance/client' +import { defineMermaidConfig } from '@vuepress/plugin-markdown-chart/client' import { defineClientConfig } from 'vuepress/client' defineMermaidConfig({ diff --git a/theme/src/shared/features/markdown.ts b/theme/src/shared/features/markdown.ts index 21e3ddd8..0f51270a 100644 --- a/theme/src/shared/features/markdown.ts +++ b/theme/src/shared/features/markdown.ts @@ -9,7 +9,7 @@ export interface MarkdownOptions extends MarkdownPowerPluginOptions, MarkdownChartPluginOptions, Pick { /** - * 此项为 `vuepress-plugin-md-enhance` 的 `demo` 选项,已弃用 + * 已弃用 * @deprecated use `demo` instead */ oldDemo?: never