Skip to content

Commit ca0a251

Browse files
okineadevbrc-dd
andauthored
docs: add a plugin to generate llms.txt (#4635)
--------- Co-authored-by: Divyansh Singh <[email protected]>
1 parent 70de34c commit ca0a251

File tree

3 files changed

+296
-271
lines changed

3 files changed

+296
-271
lines changed

docs/.vitepress/config/shared.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
groupIconVitePlugin,
55
localIconLoader
66
} from 'vitepress-plugin-group-icons'
7+
import llmstxt from 'vitepress-plugin-llms'
78
import { search as esSearch } from './es'
89
import { search as faSearch } from './fa'
910
import { search as koSearch } from './ko'
@@ -121,6 +122,10 @@ export const shared = defineConfig({
121122
),
122123
firebase: 'logos:firebase'
123124
}
125+
}),
126+
llmstxt({
127+
workDir: 'en',
128+
ignoreFiles: ['index.md']
124129
})
125130
]
126131
}

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"open-cli": "^8.0.0",
1616
"postcss-rtlcss": "^5.6.0",
1717
"vitepress": "workspace:*",
18-
"vitepress-plugin-group-icons": "^1.3.8"
18+
"vitepress-plugin-group-icons": "^1.3.8",
19+
"vitepress-plugin-llms": "^0.0.8"
1920
}
2021
}

0 commit comments

Comments
 (0)