@ruan-cat/vitepress-preset-config 0.3.0 → 0.4.1
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 +4 -2
- package/dist/theme.mjs +2 -2
- package/package.json +2 -2
- package/src/config.mts +3 -1
- package/src/theme.ts +2 -2
package/dist/config.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { defineConfig } from "vitepress";
|
|
3
3
|
import { generateSidebar } from "vitepress-sidebar";
|
|
4
4
|
import { GitChangelog, GitChangelogMarkdownSection } from "@nolebase/vitepress-plugin-git-changelog/vite";
|
|
5
|
-
import { vitepressDemoPlugin } from "vitepress-demo-plugin";
|
|
5
|
+
import { vitepressDemoPlugin } from "@ruan-cat/vitepress-demo-plugin";
|
|
6
6
|
import { merge, isUndefined, cloneDeep } from "lodash-es";
|
|
7
7
|
import consola from "consola";
|
|
8
8
|
import { addChangelog2doc, hasChangelogMd } from "@ruan-cat/utils/node-esm";
|
|
@@ -71,7 +71,9 @@ var defaultUserConfig = {
|
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
GitChangelog({
|
|
73
73
|
// 填写在此处填写您的仓库链接
|
|
74
|
-
repoURL: () => "https://github.com/ruan-cat/vercel-monorepo-test"
|
|
74
|
+
repoURL: () => "https://github.com/ruan-cat/vercel-monorepo-test",
|
|
75
|
+
// 最大日志深度为10, 避免获取过多无意义的历史日志
|
|
76
|
+
maxGitLogCount: 10
|
|
75
77
|
}),
|
|
76
78
|
// @ts-ignore
|
|
77
79
|
GitChangelogMarkdownSection()
|
package/dist/theme.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/theme.ts
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import DefaultTheme from "vitepress/theme";
|
|
4
|
-
import { VitepressDemoBox, VitepressDemoPlaceholder } from "vitepress-demo-plugin";
|
|
5
|
-
import "vitepress-demo-plugin/dist/index.css";
|
|
4
|
+
import { VitepressDemoBox, VitepressDemoPlaceholder } from "@ruan-cat/vitepress-demo-plugin";
|
|
5
|
+
import "@ruan-cat/vitepress-demo-plugin/dist/index.css";
|
|
6
6
|
import { NolebaseBreadcrumbs } from "@nolebase/vitepress-plugin-breadcrumbs/client";
|
|
7
7
|
import {
|
|
8
8
|
NolebaseEnhancedReadabilitiesMenu,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vitepress-preset-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
|
|
5
5
|
"homepage": "https://vitepress-preset.ruancat6312.top",
|
|
6
6
|
"types": "./src/config.mts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"vitepress-sidebar": "^1.31.1",
|
|
18
18
|
"vue": "^3.5.13",
|
|
19
19
|
"@ruan-cat/utils": "^4.2.1",
|
|
20
|
-
"vitepress-demo-plugin": "^1.
|
|
20
|
+
"@ruan-cat/vitepress-demo-plugin": "^0.1.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
package/src/config.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { generateSidebar, withSidebar } from "vitepress-sidebar";
|
|
|
4
4
|
export { defineConfig };
|
|
5
5
|
|
|
6
6
|
import { GitChangelog, GitChangelogMarkdownSection } from "@nolebase/vitepress-plugin-git-changelog/vite";
|
|
7
|
-
import { vitepressDemoPlugin } from "vitepress-demo-plugin";
|
|
7
|
+
import { vitepressDemoPlugin } from "@ruan-cat/vitepress-demo-plugin";
|
|
8
8
|
|
|
9
9
|
import { merge, isUndefined, cloneDeep } from "lodash-es";
|
|
10
10
|
import consola from "consola";
|
|
@@ -111,6 +111,8 @@ const defaultUserConfig: UserConfig<DefaultTheme.Config> = {
|
|
|
111
111
|
GitChangelog({
|
|
112
112
|
// 填写在此处填写您的仓库链接
|
|
113
113
|
repoURL: () => "https://github.com/ruan-cat/vercel-monorepo-test",
|
|
114
|
+
// 最大日志深度为10, 避免获取过多无意义的历史日志
|
|
115
|
+
maxGitLogCount: 10,
|
|
114
116
|
}),
|
|
115
117
|
// @ts-ignore
|
|
116
118
|
GitChangelogMarkdownSection(),
|
package/src/theme.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { h } from "vue";
|
|
|
3
3
|
import type { Theme, EnhanceAppContext } from "vitepress";
|
|
4
4
|
import DefaultTheme from "vitepress/theme";
|
|
5
5
|
|
|
6
|
-
import { VitepressDemoBox, VitepressDemoPlaceholder } from "vitepress-demo-plugin";
|
|
7
|
-
import "vitepress-demo-plugin/dist/index.css";
|
|
6
|
+
import { VitepressDemoBox, VitepressDemoPlaceholder } from "@ruan-cat/vitepress-demo-plugin";
|
|
7
|
+
import "@ruan-cat/vitepress-demo-plugin/dist/index.css";
|
|
8
8
|
|
|
9
9
|
import { NolebaseBreadcrumbs } from "@nolebase/vitepress-plugin-breadcrumbs/client";
|
|
10
10
|
|