@ruan-cat/vitepress-preset-config 0.9.0 → 0.10.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
@@ -7,6 +7,7 @@ import { merge, isUndefined, cloneDeep } from "lodash-es";
7
7
  import consola from "consola";
8
8
  import { addChangelog2doc, hasChangelogMd } from "@ruan-cat/utils/node-esm";
9
9
  import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
10
+ import llmstxt from "vitepress-plugin-llms";
10
11
  var defaultSidebarOptions = {
11
12
  // documentRootPath: "src",
12
13
  // 侧边栏需要折叠
@@ -68,6 +69,8 @@ var defaultUserConfig = {
68
69
  open: true
69
70
  },
70
71
  plugins: [
72
+ /** @see https://github.com/okineadev/vitepress-plugin-llms */
73
+ llmstxt(),
71
74
  // @ts-ignore
72
75
  GitChangelog({
73
76
  // 填写在此处填写您的仓库链接
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruan-cat/vitepress-preset-config",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "用于给大多数的vitepress项目提供一个预设的配置文件。",
5
5
  "homepage": "https://vitepress-preset.ruancat6312.top",
6
6
  "types": "./src/config.mts",
@@ -15,9 +15,10 @@
15
15
  "js-yaml": "^4.1.0",
16
16
  "lodash-es": "^4.17.21",
17
17
  "vitepress-demo-plugin": "^1.3.1",
18
+ "vitepress-plugin-llms": "^1.1.0",
18
19
  "vitepress-sidebar": "^1.31.1",
19
20
  "vue": "^3.5.13",
20
- "@ruan-cat/utils": "^4.2.1"
21
+ "@ruan-cat/utils": "^4.2.2"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/lodash-es": "^4.17.12",
@@ -41,7 +42,7 @@
41
42
  }
42
43
  },
43
44
  "bugs": {
44
- "url": "https://github.com/ruan-cat/vercel-monorepo-test/issues"
45
+ "url": "https://github.com/ruan-cat/monorepo/issues"
45
46
  },
46
47
  "repository": {
47
48
  "type": "git",
@@ -21,7 +21,7 @@ const thisDocUserConfig = setUserConfig({
21
21
  socialLinks: [
22
22
  {
23
23
  icon: "github",
24
- link: "https://github.com/ruan-cat/vercel-monorepo-test/tree/main/packages/vitepress-preset-config",
24
+ link: "https://github.com/ruan-cat/monorepo/tree/main/packages/vitepress-preset-config",
25
25
  },
26
26
  ],
27
27
  },
package/src/config.mts CHANGED
@@ -14,6 +14,8 @@ export { addChangelog2doc };
14
14
 
15
15
  import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
16
16
 
17
+ import llmstxt from "vitepress-plugin-llms";
18
+
17
19
  type VitePressSidebarOptions = Parameters<typeof generateSidebar>[0];
18
20
 
19
21
  /** 默认侧边栏配置 */
@@ -107,6 +109,9 @@ const defaultUserConfig: UserConfig<DefaultTheme.Config> = {
107
109
  },
108
110
 
109
111
  plugins: [
112
+ /** @see https://github.com/okineadev/vitepress-plugin-llms */
113
+ llmstxt(),
114
+
110
115
  // @ts-ignore
111
116
  GitChangelog({
112
117
  // 填写在此处填写您的仓库链接