Skip to content

Commit 2a4b763

Browse files
committed
docs: add llms.txt
Close #3131
1 parent 1ff1065 commit 2a4b763

3 files changed

Lines changed: 522 additions & 3 deletions

File tree

packages/docs/.vitepress/config/shared.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig, HeadConfig } from 'vitepress'
22
import { zhSearch } from './zh'
3+
import llmstxt from 'vitepress-plugin-llms'
34

45
export const META_IMAGE = 'https://pinia.vuejs.org/social.png'
56
export const isProduction =
@@ -148,4 +149,18 @@ export const sharedConfig = defineConfig({
148149
placement: 'routervuejsorg',
149150
},
150151
},
152+
vite: {
153+
plugins: [
154+
llmstxt({
155+
description: 'The intuitive store for Vue.js',
156+
details: `
157+
- Type Safe, autocompletion even in JavaScript
158+
- Powerful plugin system
159+
- Modular stores by design
160+
- Devtools support
161+
`.trim(),
162+
ignoreFiles: ['index.md', 'api/**/*', 'zh/**/*'],
163+
}),
164+
],
165+
},
151166
})

packages/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"pinia": "workspace:*",
2020
"typedoc-vitepress-theme": "^1.1.2",
2121
"vitepress": "1.6.4",
22+
"vitepress-plugin-llms": "^1.12.2",
2223
"vitepress-translation-helper": "^0.2.2",
2324
"vue-use-spring": "^0.3.3"
2425
}

0 commit comments

Comments
 (0)