diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 43cf279c..67ddda33 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -2,6 +2,7 @@ import * as path from 'node:path' import { type UserConfig, defineUserConfig } from 'vuepress' import { viteBundler } from '@vuepress/bundler-vite' import { addViteOptimizeDepsInclude, addViteSsrExternal } from '@vuepress/helper' +import { peerDependencies } from '../package.json' import { theme } from './theme.js' export default defineUserConfig({ @@ -27,6 +28,10 @@ export default defineUserConfig({ addViteSsrExternal(bundlerOptions, app, '@simonwep/pickr') }, + define: { + __VUEPRESS_VERSION__: peerDependencies.vuepress, + }, + bundler: viteBundler(), theme, diff --git a/docs/.vuepress/themes/components/ThemeColors.vue b/docs/.vuepress/themes/components/ThemeColors.vue index 16db3e78..f4fc8078 100644 --- a/docs/.vuepress/themes/components/ThemeColors.vue +++ b/docs/.vuepress/themes/components/ThemeColors.vue @@ -16,8 +16,10 @@ const { lightColors, darkColors, css, reset } = useThemeColors()
vuepress@{{ vuepressVersion }},你应该安装这个版本的 VuePress。
高于或低于这个版本,可能会存在潜在的兼容性问题。
:::
@@ -160,7 +164,7 @@ tags:
:::
:::warning
- 无论是否需要使用 **多语言** ,你都应该为 VuePress 配置 正确 `lang` 选项值。
+ 无论是否需要使用 __多语言__ ,你都应该为 VuePress 配置 正确 `lang` 选项值。
主题需要根据 `lang` 选项来确定语言环境文本。
:::
diff --git a/docs/notes/theme/guide/知识笔记.md b/docs/notes/theme/guide/知识笔记.md
index 922e7381..de15025e 100644
--- a/docs/notes/theme/guide/知识笔记.md
+++ b/docs/notes/theme/guide/知识笔记.md
@@ -22,13 +22,13 @@ tags:
示例:
-```
+``` :no-line-numbers
{sourceDir}/
├─ notes/
- ├─ typescript/
- │ ├─ foo.md
- ├─ rust/
- │ ├─ foo.md
+│ ├─ typescript/
+│ │ └─ foo.md
+│ └─ rust/
+│ └─ foo.md
```
其中,`typescript` 和 `rust` 为目录名,各自独立保存与之相关的 markdown 文件。
diff --git a/docs/package.json b/docs/package.json
index c16567e0..ed549953 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -12,7 +12,7 @@
"vuepress": "2.0.0-rc.14"
},
"dependencies": {
- "@iconify/json": "^2.2.235",
+ "@iconify/json": "^2.2.238",
"@simonwep/pickr": "^1.9.1",
"@vuepress/bundler-vite": "2.0.0-rc.14",
"chart.js": "^4.4.3",
@@ -20,7 +20,7 @@
"flowchart.ts": "^3.0.0",
"http-server": "^14.1.1",
"mermaid": "^10.9.1",
- "vue": "^3.4.37",
+ "vue": "^3.4.38",
"vuepress-theme-plume": "workspace:*"
},
"devDependencies": {
diff --git a/package.json b/package.json
index c1153203..8ea3660e 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"type": "module",
"version": "1.0.0-rc.86",
"private": true,
- "packageManager": "pnpm@9.7.0",
+ "packageManager": "pnpm@9.7.1",
"author": "pengzhanbo