1
1
import { DefaultTheme , defineConfig } from 'vitepress'
2
2
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
3
- import { version } from '../../package.json'
3
+ import { ModuleResolutionKind } from 'typescript'
4
+ import llmstxt from 'vitepress-plugin-llms'
4
5
import {
5
6
headTitle ,
6
7
headDescription ,
@@ -9,11 +10,37 @@ import {
9
10
releases ,
10
11
discord ,
11
12
} from './meta'
13
+ import { version } from '../../package.json'
12
14
import { typedRouterFile , typedRouterFileAsModule } from './twoslash-files'
13
15
import { extraFiles } from './twoslash/files'
14
- import { ModuleResolutionKind } from 'typescript'
15
16
16
17
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
+
17
44
markdown : {
18
45
codeTransformers : [
19
46
transformerTwoslash ( {
@@ -31,9 +58,6 @@ export default defineConfig({
31
58
] ,
32
59
} ,
33
60
34
- title : headTitle ,
35
- description : headDescription ,
36
-
37
61
head : [
38
62
// ['meta', { name: 'theme-color', content: '#ffca28' }],
39
63
// TODO: icon and color
0 commit comments