Skip to content

Commit a488491

Browse files
committed
llms txt & version upgrade
1 parent 16d9602 commit a488491

5 files changed

Lines changed: 2728 additions & 1977 deletions

File tree

docs/.vuepress/config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { container } from "@mdit/plugin-container";
22
import { viteBundler } from "@vuepress/bundler-vite";
3+
import { llmsPlugin } from "@vuepress/plugin-llms";
34
import { defineUserConfig } from "vuepress";
45
import { path } from "vuepress/utils";
56

@@ -90,6 +91,23 @@ export default defineUserConfig({
9091

9192
theme,
9293

94+
plugins: [
95+
llmsPlugin({
96+
// 为所有语言环境生成 llms.txt
97+
locale: "all",
98+
// 添加域名(可选,生成绝对路径)
99+
domain: "https://api-buddy.com",
100+
// 生成 llms.txt 索引文件
101+
llmsTxt: true,
102+
// 生成完整文档合并文件
103+
llmsFullTxt: true,
104+
// 为每个页面生成 Markdown 版本
105+
llmsPageTxt: true,
106+
// 剥离 HTML 标签
107+
stripHTML: true,
108+
}),
109+
],
110+
93111
pagePatterns: ["**/*.md", "!*.snippet.md", "!.vuepress", "!node_modules"],
94112

95113
alias: {

docs/en/guide/history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Join and follow us to solve your question ❤️❤️❤️↓↓↓
1212

1313
| [![Slack](https://img.shields.io/static/v1?label=Slack&message=Restful%20Fast%20Request&logo=slack&color=38B580)](https://join.slack.com/t/restfulfastrequest/shared_invite/zt-1we57vum8-TALhTHI2uNmPF2bx1NDyWw) | [![twitter](https://img.shields.io/static/v1?label=Twitter&message=FastRequest666&logo=twitter&color=FC8D34)](https://twitter.com/FastRequest666) |
1414
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
15-
| ![slack](/img/slack.png =300x300) | ![twitter](/img/twitter.png =300x300) |
15+
| ![slack](/img/slack.png) | ![twitter](/img/twitter.png) |
1616

1717
:::
1818

docs/guide/history.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ icon: changelog
1010
购买**License**流程请参考[**购买插件**](./buy.md),Issue 提报请到[_Github_](https://github.com/dromara/fast-request/issues)
1111

1212
| ![微信技术群](https://img.shields.io/static/v1?label=wechat&message=微信技术群&logo=wechat&color=07C160) | [![twitter](https://img.shields.io/static/v1?label=Twitter&message=FastRequest666&logo=twitter&color=FC8D34)](https://twitter.com/FastRequest666) |
13-
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
14-
| ![wechat group](/img/wechatGroup.png =300x300) | ![twitter](/img/twitter.png =300x300) |
13+
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
14+
| ![wechat group](/img/wechatGroup.png) | ![twitter](/img/twitter.png) |
1515
| 如果扫码失败请直接搜微信号==FastRequest99== | 欢迎关注官方 Twitter |
1616

1717
:::

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@
1212
},
1313
"dependencies": {
1414
"@mdit/plugin-container": "0.16.0",
15-
"@vuepress/bundler-vite": "2.0.0-rc.20",
16-
"@vuepress/plugin-docsearch": "2.0.0-rc.82",
17-
"chart.js": "^4.4.8",
18-
"sass": "^1.85.1",
15+
"@vuepress/bundler-vite": "2.0.0-rc.28",
16+
"@vuepress/plugin-docsearch": "2.0.0-rc.127",
17+
"chart.js": "^4.5.1",
18+
"sass": "^1.98.0",
1919
"vidstack": "^1.12.13",
20-
"vue": "^3.5.13",
20+
"vue": "^3.5.31",
2121
"vue3-carousel": "^0.14.0",
22-
"vuepress": "2.0.0-rc.20",
23-
"vuepress-theme-hope": "2.0.0-rc.74"
22+
"vuepress": "2.0.0-rc.28",
23+
"vuepress-theme-hope": "2.0.0-rc.105"
2424
},
2525
"devDependencies": {
26+
"@vuepress/plugin-llms": "2.0.0-rc.127",
2627
"markdownlint-cli2": "^0.17.2",
2728
"prettier": "3.5.3"
2829
},

0 commit comments

Comments
 (0)