@ruan-cat/vitepress-preset-config 2.3.0 → 2.4.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 +9 -1
- package/package.json +7 -7
- package/src/config.mts +8 -2
package/dist/config.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { generateSidebar } from 'vitepress-sidebar';
|
|
|
5
5
|
import llmstxt from 'vitepress-plugin-llms';
|
|
6
6
|
import { GitChangelog, GitChangelogMarkdownSectionOptions } from '@nolebase/vitepress-plugin-git-changelog/vite';
|
|
7
7
|
import { defineTeekConfig } from 'vitepress-theme-teek/config';
|
|
8
|
-
export { addChangelog2doc, copyReadmeMd } from '@ruan-cat/utils/node-esm';
|
|
8
|
+
export { addChangelog2doc, copyChangelogMd, copyClaudeAgents, copyReadmeMd } from '@ruan-cat/utils/node-esm';
|
|
9
9
|
|
|
10
10
|
type LlmstxtSettings = NonNullable<Parameters<typeof llmstxt>[0]>;
|
|
11
11
|
type GitChangelogOptions = NonNullable<Parameters<typeof GitChangelog>[0]>;
|
package/dist/config.mjs
CHANGED
|
@@ -4,7 +4,13 @@ import { generateSidebar } from "vitepress-sidebar";
|
|
|
4
4
|
import { vitepressDemoPlugin } from "vitepress-demo-plugin";
|
|
5
5
|
import { merge as merge2, isUndefined, cloneDeep as cloneDeep2 } from "lodash-es";
|
|
6
6
|
import consola from "consola";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
addChangelog2doc,
|
|
9
|
+
hasChangelogMd,
|
|
10
|
+
copyReadmeMd,
|
|
11
|
+
copyClaudeAgents,
|
|
12
|
+
copyChangelogMd
|
|
13
|
+
} from "@ruan-cat/utils/node-esm";
|
|
8
14
|
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
|
|
9
15
|
import { copyOrDownloadAsMarkdownButtons } from "vitepress-plugin-llms";
|
|
10
16
|
|
|
@@ -234,6 +240,8 @@ function setUserConfig(config, extraConfig) {
|
|
|
234
240
|
}
|
|
235
241
|
export {
|
|
236
242
|
addChangelog2doc,
|
|
243
|
+
copyChangelogMd,
|
|
244
|
+
copyClaudeAgents,
|
|
237
245
|
copyReadmeMd,
|
|
238
246
|
defineConfig,
|
|
239
247
|
setGenerateSidebar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vitepress-preset-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
|
|
5
5
|
"homepage": "https://vitepress-preset.ruancat6312.top",
|
|
6
6
|
"types": "./src/config.mts",
|
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@leelaa/vitepress-plugin-extended": "^1.0.7",
|
|
10
10
|
"@nolebase/vitepress-plugin-git-changelog": "^2.18.2",
|
|
11
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
11
|
+
"@shikijs/vitepress-twoslash": "^3.13.0",
|
|
12
12
|
"consola": "^3.4.2",
|
|
13
13
|
"js-yaml": "^4.1.0",
|
|
14
14
|
"lodash-es": "^4.17.21",
|
|
15
15
|
"markdown-it-async": "^2.2.0",
|
|
16
16
|
"markdown-it-mathjax3": "^4.3.2",
|
|
17
17
|
"vitepress-demo-plugin": "^1.4.7",
|
|
18
|
-
"vitepress-plugin-llms": "^1.7.
|
|
18
|
+
"vitepress-plugin-llms": "^1.7.5",
|
|
19
19
|
"vitepress-sidebar": "^1.33.0",
|
|
20
20
|
"vitepress-theme-teek": "^1.4.6",
|
|
21
|
-
"vue": "^3.5.
|
|
22
|
-
"@ruan-cat/utils": "^4.
|
|
21
|
+
"vue": "^3.5.21",
|
|
22
|
+
"@ruan-cat/utils": "^4.12.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
26
|
-
"automd": "^0.4.
|
|
27
|
-
"element-plus": "^2.11.
|
|
26
|
+
"automd": "^0.4.2",
|
|
27
|
+
"element-plus": "^2.11.3",
|
|
28
28
|
"tsup": "^8.5.0",
|
|
29
29
|
"vitepress": "^1.6.4"
|
|
30
30
|
},
|
package/src/config.mts
CHANGED
|
@@ -9,8 +9,14 @@ import { merge, isUndefined, cloneDeep } from "lodash-es";
|
|
|
9
9
|
import consola from "consola";
|
|
10
10
|
import type { ExtraConfig } from "./types.ts";
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
|
|
12
|
+
import {
|
|
13
|
+
addChangelog2doc,
|
|
14
|
+
hasChangelogMd,
|
|
15
|
+
copyReadmeMd,
|
|
16
|
+
copyClaudeAgents,
|
|
17
|
+
copyChangelogMd,
|
|
18
|
+
} from "@ruan-cat/utils/node-esm";
|
|
19
|
+
export { addChangelog2doc, copyReadmeMd, copyClaudeAgents, copyChangelogMd };
|
|
14
20
|
|
|
15
21
|
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
|
|
16
22
|
|