@ruan-cat/vitepress-preset-config 2.12.3 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config.mjs CHANGED
@@ -214,6 +214,7 @@ function handlePlugins(userConfig, extraConfig) {
214
214
  // src/config/changelog-nav.ts
215
215
  import consola5 from "consola";
216
216
  import { isUndefined } from "lodash-es";
217
+ import { printFormat } from "@ruan-cat/utils";
217
218
  function handleChangeLog(userConfig) {
218
219
  var _a;
219
220
  if (!hasChangelogMd()) {
@@ -226,6 +227,7 @@ function handleChangeLog(userConfig) {
226
227
  throw new Error(` nav \u9ED8\u8BA4\u63D0\u4F9B\u7684\u5BFC\u822A\u680F\u914D\u7F6E\u4E3A\u7A7A\u3002\u4E0D\u7B26\u5408\u9ED8\u8BA4\u914D\u7F6E\uFF0C\u8BF7\u68C0\u67E5\u3002 `);
227
228
  }
228
229
  nav.push({ text: "\u66F4\u65B0\u65E5\u5FD7", link: "/CHANGELOG.md" });
230
+ console.log(" \u67E5\u770B\u4FA7\u8FB9\u680F\u6570\u636E ", printFormat(userConfig == null ? void 0 : userConfig.themeConfig.sidebar));
229
231
  }
230
232
 
231
233
  // src/config/prompts-nav.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruan-cat/vitepress-preset-config",
3
- "version": "2.12.3",
3
+ "version": "2.13.0",
4
4
  "description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
5
5
  "homepage": "https://vitepress-preset.ruancat6312.top",
6
6
  "types": "./src/config.mts",
@@ -15,11 +15,11 @@
15
15
  "markdown-it-async": "^2.2.0",
16
16
  "markdown-it-mathjax3": "^4.3.2",
17
17
  "vitepress-demo-plugin": "^1.5.0",
18
- "vitepress-plugin-llms": "^1.9.1",
18
+ "vitepress-plugin-llms": "^1.10.0",
19
19
  "vitepress-sidebar": "^1.33.0",
20
20
  "vitepress-theme-teek": "^1.5.2",
21
21
  "vue": "^3.5.24",
22
- "@ruan-cat/utils": "^4.19.0"
22
+ "@ruan-cat/utils": "^4.20.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/lodash-es": "^4.17.12",
@@ -4,6 +4,7 @@ import { type UserConfig, type DefaultTheme } from "vitepress";
4
4
  import consola from "consola";
5
5
  import { isUndefined } from "lodash-es";
6
6
  import { hasChangelogMd } from "../utils/copy-changelog";
7
+ import { printFormat } from "@ruan-cat/utils";
7
8
 
8
9
  /**
9
10
  * 设置导航栏的变更日志
@@ -27,4 +28,8 @@ export function handleChangeLog(userConfig: UserConfig<DefaultTheme.Config>) {
27
28
  }
28
29
 
29
30
  nav.push({ text: "更新日志", link: "/CHANGELOG.md" });
31
+
32
+ // TODO: 持续完成特殊侧边栏的处理
33
+ // @ts-ignore
34
+ console.log(" 查看侧边栏数据 ", printFormat(userConfig?.themeConfig.sidebar));
30
35
  }