Skip to content

Commit e15b456

Browse files
okineadevkermanx
andauthored
feat(docs): generate llms.txt and llms-full.txt (#2139)
* feat(docs): generate `llms.txt` and `llms-full.txt` * Discard changes to docs/components.d.ts --------- Co-authored-by: _Kerman <[email protected]>
1 parent da595c1 commit e15b456

File tree

3 files changed

+152
-29
lines changed

3 files changed

+152
-29
lines changed

Diff for: docs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"unplugin-vue-components": "catalog:",
3232
"vite-plugin-inspect": "catalog:",
3333
"vitepress": "catalog:",
34+
"vitepress-plugin-llms": "^0.0.16",
3435
"vue": "catalog:"
3536
}
3637
}

Diff for: docs/vite.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Icons from 'unplugin-icons/vite'
44
import Components from 'unplugin-vue-components/vite'
55
import { defineConfig } from 'vite'
66
import Inspect from 'vite-plugin-inspect'
7+
import llmstxt from 'vitepress-plugin-llms'
78

89
export default defineConfig({
910
optimizeDeps: {
@@ -19,6 +20,12 @@ export default defineConfig({
1920
},
2021
},
2122
plugins: [
23+
llmstxt({
24+
ignoreFiles: [
25+
'index.md',
26+
'README.md'
27+
],
28+
}),
2229
Components({
2330
dirs: [
2431
'./.vitepress/theme/components',

0 commit comments

Comments
 (0)