@ruan-cat/vitepress-preset-config 0.12.2 → 0.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.d.mts +1 -0
- package/dist/config.mjs +5 -2
- package/package.json +3 -2
- package/src/config.mts +7 -1
package/dist/config.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ export { defineConfig } from 'vitepress';
|
|
|
4
4
|
import { generateSidebar } from 'vitepress-sidebar';
|
|
5
5
|
export { addChangelog2doc } from '@ruan-cat/utils/node-esm';
|
|
6
6
|
export { withMermaid } from 'vitepress-plugin-mermaid';
|
|
7
|
+
export { default as VitePluginVercel } from 'vite-plugin-vercel';
|
|
7
8
|
|
|
8
9
|
type VitePressSidebarOptions = Parameters<typeof generateSidebar>[0];
|
|
9
10
|
/**
|
package/dist/config.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import { addChangelog2doc, hasChangelogMd } from "@ruan-cat/utils/node-esm";
|
|
|
9
9
|
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
|
|
10
10
|
import llmstxt from "vitepress-plugin-llms";
|
|
11
11
|
import { withMermaid } from "vitepress-plugin-mermaid";
|
|
12
|
+
import VitePluginVercel from "vite-plugin-vercel";
|
|
12
13
|
var defaultSidebarOptions = {
|
|
13
14
|
// documentRootPath: "src",
|
|
14
15
|
// 侧边栏需要折叠
|
|
@@ -77,12 +78,13 @@ var defaultUserConfig = {
|
|
|
77
78
|
// @ts-ignore
|
|
78
79
|
GitChangelog({
|
|
79
80
|
// 填写在此处填写您的仓库链接
|
|
80
|
-
repoURL: () => "https://github.com/ruan-cat/
|
|
81
|
+
repoURL: () => "https://github.com/ruan-cat/monorepo",
|
|
81
82
|
// 最大日志深度为10, 避免获取过多无意义的历史日志
|
|
82
83
|
maxGitLogCount: 10
|
|
83
84
|
}),
|
|
84
85
|
// @ts-ignore
|
|
85
|
-
GitChangelogMarkdownSection()
|
|
86
|
+
GitChangelogMarkdownSection(),
|
|
87
|
+
VitePluginVercel()
|
|
86
88
|
],
|
|
87
89
|
optimizeDeps: {
|
|
88
90
|
exclude: [
|
|
@@ -139,6 +141,7 @@ function setUserConfig(config) {
|
|
|
139
141
|
return resUserConfig;
|
|
140
142
|
}
|
|
141
143
|
export {
|
|
144
|
+
VitePluginVercel,
|
|
142
145
|
addChangelog2doc,
|
|
143
146
|
defineConfig,
|
|
144
147
|
setGenerateSidebar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vitepress-preset-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
|
|
5
5
|
"homepage": "https://vitepress-preset.ruancat6312.top",
|
|
6
6
|
"types": "./src/config.mts",
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"js-yaml": "^4.1.0",
|
|
16
16
|
"lodash-es": "^4.17.21",
|
|
17
17
|
"mermaid": "^11.6.0",
|
|
18
|
+
"vite-plugin-vercel": "^9.0.7",
|
|
18
19
|
"vitepress-demo-plugin": "^1.3.1",
|
|
19
20
|
"vitepress-plugin-llms": "^1.1.0",
|
|
20
21
|
"vitepress-plugin-mermaid": "^2.0.17",
|
|
21
22
|
"vitepress-sidebar": "^1.31.1",
|
|
22
23
|
"vue": "^3.5.13",
|
|
23
|
-
"@ruan-cat/utils": "^4.
|
|
24
|
+
"@ruan-cat/utils": "^4.6.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@types/lodash-es": "^4.17.12",
|
package/src/config.mts
CHANGED
|
@@ -28,6 +28,9 @@ import { withMermaid } from "vitepress-plugin-mermaid";
|
|
|
28
28
|
*/
|
|
29
29
|
export { withMermaid };
|
|
30
30
|
|
|
31
|
+
import VitePluginVercel from "vite-plugin-vercel";
|
|
32
|
+
export { VitePluginVercel };
|
|
33
|
+
|
|
31
34
|
type VitePressSidebarOptions = Parameters<typeof generateSidebar>[0];
|
|
32
35
|
|
|
33
36
|
/** 默认侧边栏配置 */
|
|
@@ -129,12 +132,15 @@ const defaultUserConfig: UserConfig<DefaultTheme.Config> = {
|
|
|
129
132
|
// @ts-ignore
|
|
130
133
|
GitChangelog({
|
|
131
134
|
// 填写在此处填写您的仓库链接
|
|
132
|
-
repoURL: () => "https://github.com/ruan-cat/
|
|
135
|
+
repoURL: () => "https://github.com/ruan-cat/monorepo",
|
|
133
136
|
// 最大日志深度为10, 避免获取过多无意义的历史日志
|
|
134
137
|
maxGitLogCount: 10,
|
|
135
138
|
}),
|
|
139
|
+
|
|
136
140
|
// @ts-ignore
|
|
137
141
|
GitChangelogMarkdownSection(),
|
|
142
|
+
|
|
143
|
+
VitePluginVercel(),
|
|
138
144
|
],
|
|
139
145
|
|
|
140
146
|
optimizeDeps: {
|