@ruan-cat/vitepress-preset-config 2.2.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 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 { addChangelog2doc, hasChangelogMd, copyReadmeMd } from "@ruan-cat/utils/node-esm";
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/dist/theme.mjs CHANGED
@@ -6,6 +6,12 @@ import "@shikijs/vitepress-twoslash/style.css";
6
6
  import CopyOrDownloadAsMarkdownButtons from "vitepress-plugin-llms/vitepress-components/CopyOrDownloadAsMarkdownButtons.vue";
7
7
  import Teek from "vitepress-theme-teek";
8
8
  import "vitepress-theme-teek/index.css";
9
+ import "vitepress-theme-teek/theme-chalk/tk-doc-h1-gradient.css";
10
+ import "vitepress-theme-teek/theme-chalk/tk-nav-blur.css";
11
+ import "vitepress-theme-teek/theme-chalk/tk-scrollbar.css";
12
+ import "vitepress-theme-teek/theme-chalk/tk-sidebar.css";
13
+ import "vitepress-theme-teek/theme-chalk/tk-aside.css";
14
+ import "vitepress-theme-teek/theme-chalk/tk-fade-up-animation.css";
9
15
  import { Mermaid } from "@leelaa/vitepress-plugin-extended";
10
16
  function defaultEnhanceAppPreset({ app, router, siteData }) {
11
17
  app.use(NolebaseGitChangelogPlugin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruan-cat/vitepress-preset-config",
3
- "version": "2.2.0",
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.12.0",
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.3",
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.20",
22
- "@ruan-cat/utils": "^4.10.0"
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.0",
27
- "element-plus": "^2.11.1",
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 { addChangelog2doc, hasChangelogMd, copyReadmeMd } from "@ruan-cat/utils/node-esm";
13
- export { addChangelog2doc, copyReadmeMd };
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
 
package/src/theme.ts CHANGED
@@ -21,6 +21,20 @@ import CopyOrDownloadAsMarkdownButtons from "vitepress-plugin-llms/vitepress-com
21
21
  import Teek from "vitepress-theme-teek";
22
22
  import "vitepress-theme-teek/index.css";
23
23
 
24
+ // https://vp.teek.top/guide/styles-plus.html#样式增强
25
+ // 文章一级标题渐变色
26
+ import "vitepress-theme-teek/theme-chalk/tk-doc-h1-gradient.css";
27
+ // 导航栏毛玻璃样式
28
+ import "vitepress-theme-teek/theme-chalk/tk-nav-blur.css";
29
+ // 滚动条样式
30
+ import "vitepress-theme-teek/theme-chalk/tk-scrollbar.css";
31
+ // 侧边栏样式
32
+ import "vitepress-theme-teek/theme-chalk/tk-sidebar.css";
33
+ // 右侧目栏录文字悬停和激活样式
34
+ import "vitepress-theme-teek/theme-chalk/tk-aside.css";
35
+ // 首次进入页面添加渐显动画
36
+ import "vitepress-theme-teek/theme-chalk/tk-fade-up-animation.css";
37
+
24
38
  /** @see https://vitepress-ext.leelaa.cn/Mermaid.html#全局引入 */
25
39
  // @ts-ignore FIXME: 忽略类型导出的bug 避免tsup打包失败
26
40
  import { Mermaid } from "@leelaa/vitepress-plugin-extended";