Skip to content

Commit eec568c

Browse files
authored
docs(deps): add vitepress plugin llms (#1865)
Signed-off-by: braks <[email protected]>
1 parent 6f2db57 commit eec568c

File tree

3 files changed

+477
-3
lines changed

3 files changed

+477
-3
lines changed

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"unplugin-vue-components": "^0.27.4",
4242
"vite-plugin-windicss": "^1.9.3",
4343
"vitepress": "^1.5.0",
44+
"vitepress-plugin-llms": "^1.3.4",
4445
"windicss": "^3.5.6"
4546
}
4647
}

docs/src/.vitepress/config.mts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import IconsResolver from 'unplugin-icons/resolver'
88
import Components from 'unplugin-vue-components/vite'
99
import AutoImport from 'unplugin-auto-import/vite'
1010
import { useVueFlow } from '@vue-flow/core'
11+
import llmstxt from 'vitepress-plugin-llms'
1112
import head from './head'
1213
import { copyVueFlowPlugin, files } from './plugins'
1314

@@ -70,6 +71,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
7071

7172
vite: {
7273
define: {
74+
// eslint-disable-next-line n/prefer-global/process
7375
__ANALYTICS_ID__: process.env.VERCEL_ANALYTICS_ID,
7476
},
7577
plugins: [
@@ -94,13 +96,14 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
9496
}),
9597
Icons({
9698
compiler: 'vue3',
97-
defaultClass: 'inline-block align-middle'
99+
defaultClass: 'inline-block align-middle',
98100
}),
101+
llmstxt(),
99102
],
100103
},
101104

102105
sitemap: {
103-
hostname: 'https://vueflow.dev'
106+
hostname: 'https://vueflow.dev',
104107
},
105108

106109
themeConfig: {
@@ -115,6 +118,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
115118
],
116119
algolia: {
117120
appId: 'F7BJNSM4M5',
121+
// eslint-disable-next-line n/prefer-global/process
118122
apiKey: process.env.ALGOLIA_API_KEY!,
119123
indexName: 'vueflow',
120124
},
@@ -194,7 +198,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
194198
{
195199
text: 'Troubleshooting',
196200
link: '/guide/troubleshooting',
197-
}
201+
},
198202
],
199203
'/examples/': [
200204
{

0 commit comments

Comments
 (0)