@ruan-cat/vitepress-preset-config 0.14.0 → 0.15.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 -1
- package/dist/config.mjs +3 -1
- package/package.json +2 -2
- package/src/config.mts +3 -2
package/dist/config.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vitepress_sidebar_types from 'vitepress-sidebar/types';
|
|
|
2
2
|
import { UserConfig, DefaultTheme } from 'vitepress';
|
|
3
3
|
export { defineConfig } from 'vitepress';
|
|
4
4
|
import { generateSidebar } from 'vitepress-sidebar';
|
|
5
|
-
export { addChangelog2doc } from '@ruan-cat/utils/node-esm';
|
|
5
|
+
export { addChangelog2doc, copyReadmeMd } from '@ruan-cat/utils/node-esm';
|
|
6
6
|
export { withMermaid } from 'vitepress-plugin-mermaid';
|
|
7
7
|
export { default as VitePluginVercel } from 'vite-plugin-vercel';
|
|
8
8
|
|
package/dist/config.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { GitChangelog, GitChangelogMarkdownSection } from "@nolebase/vitepress-p
|
|
|
5
5
|
import { vitepressDemoPlugin } from "vitepress-demo-plugin";
|
|
6
6
|
import { merge, isUndefined, cloneDeep } from "lodash-es";
|
|
7
7
|
import consola from "consola";
|
|
8
|
-
import { addChangelog2doc, hasChangelogMd } from "@ruan-cat/utils/node-esm";
|
|
8
|
+
import { addChangelog2doc, hasChangelogMd, copyReadmeMd } 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";
|
|
@@ -84,6 +84,7 @@ var defaultUserConfig = {
|
|
|
84
84
|
}),
|
|
85
85
|
// @ts-ignore
|
|
86
86
|
GitChangelogMarkdownSection(),
|
|
87
|
+
// @ts-ignore
|
|
87
88
|
VitePluginVercel()
|
|
88
89
|
],
|
|
89
90
|
optimizeDeps: {
|
|
@@ -143,6 +144,7 @@ function setUserConfig(config) {
|
|
|
143
144
|
export {
|
|
144
145
|
VitePluginVercel,
|
|
145
146
|
addChangelog2doc,
|
|
147
|
+
copyReadmeMd,
|
|
146
148
|
defineConfig,
|
|
147
149
|
setGenerateSidebar,
|
|
148
150
|
setUserConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vitepress-preset-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
|
|
5
5
|
"homepage": "https://vitepress-preset.ruancat6312.top",
|
|
6
6
|
"types": "./src/config.mts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"vitepress-plugin-mermaid": "^2.0.17",
|
|
24
24
|
"vitepress-sidebar": "^1.31.1",
|
|
25
25
|
"vue": "^3.5.13",
|
|
26
|
-
"@ruan-cat/utils": "^4.
|
|
26
|
+
"@ruan-cat/utils": "^4.9.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash-es": "^4.17.12",
|
package/src/config.mts
CHANGED
|
@@ -9,8 +9,8 @@ import { vitepressDemoPlugin } from "vitepress-demo-plugin";
|
|
|
9
9
|
import { merge, isUndefined, cloneDeep } from "lodash-es";
|
|
10
10
|
import consola from "consola";
|
|
11
11
|
|
|
12
|
-
import { addChangelog2doc, hasChangelogMd } from "@ruan-cat/utils/node-esm";
|
|
13
|
-
export { addChangelog2doc };
|
|
12
|
+
import { addChangelog2doc, hasChangelogMd, copyReadmeMd } from "@ruan-cat/utils/node-esm";
|
|
13
|
+
export { addChangelog2doc, copyReadmeMd };
|
|
14
14
|
|
|
15
15
|
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
|
|
16
16
|
|
|
@@ -140,6 +140,7 @@ const defaultUserConfig: UserConfig<DefaultTheme.Config> = {
|
|
|
140
140
|
// @ts-ignore
|
|
141
141
|
GitChangelogMarkdownSection(),
|
|
142
142
|
|
|
143
|
+
// @ts-ignore
|
|
143
144
|
VitePluginVercel(),
|
|
144
145
|
],
|
|
145
146
|
|