Skip to content

Commit 50b022f

Browse files
committed
docs: llm
1 parent 0f90774 commit 50b022f

File tree

3 files changed

+202
-5
lines changed

3 files changed

+202
-5
lines changed

docs/.vitepress/config.ts

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DefaultTheme, defineConfig } from 'vitepress'
22
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
3-
import { version } from '../../package.json'
3+
import { ModuleResolutionKind } from 'typescript'
4+
import llmstxt from 'vitepress-plugin-llms'
45
import {
56
headTitle,
67
headDescription,
@@ -9,11 +10,37 @@ import {
910
releases,
1011
discord,
1112
} from './meta'
13+
import { version } from '../../package.json'
1214
import { typedRouterFile, typedRouterFileAsModule } from './twoslash-files'
1315
import { extraFiles } from './twoslash/files'
14-
import { ModuleResolutionKind } from 'typescript'
1516

1617
export default defineConfig({
18+
title: headTitle,
19+
description: headDescription,
20+
21+
vite: {
22+
plugins: [
23+
llmstxt({
24+
description: 'The official Router for Vue.js',
25+
details: `
26+
- Type Safe routes
27+
- File based routing
28+
- Data Loaders for efficient data fetching
29+
`.trim(),
30+
ignoreFiles: [
31+
//
32+
// path.join(__dirname, '../'),
33+
// path.join(__dirname, '../../public/'),
34+
// path.join(__dirname, '../../api/**/*'),
35+
// path.join(__dirname, '../../index.md'),
36+
'index.md',
37+
// 'api/*',
38+
'api/**/*',
39+
],
40+
}),
41+
],
42+
},
43+
1744
markdown: {
1845
codeTransformers: [
1946
transformerTwoslash({
@@ -31,9 +58,6 @@ export default defineConfig({
3158
],
3259
},
3360

34-
title: headTitle,
35-
description: headDescription,
36-
3761
head: [
3862
// ['meta', { name: 'theme-color', content: '#ffca28' }],
3963
// TODO: icon and color

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
"vite": "^6.3.5",
191191
"vite-plugin-vue-devtools": "^7.7.6",
192192
"vitepress": "^1.6.3",
193+
"vitepress-plugin-llms": "^1.2.0",
193194
"vitest": "^3.1.3",
194195
"vue": "^3.5.14",
195196
"vue-router": "^4.5.1",

0 commit comments

Comments
 (0)