Skip to content

Commit c7af951

Browse files
authored
generate llm.txt from the docs (#402)
1 parent ac43e08 commit c7af951

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Production
55
/build
66

7+
# Should be generated on build by the plugin
8+
/static/llms.txt
9+
710
# Generated files
811
.docusaurus
912
.cache-loader

docs/docusaurus.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ const config = {
4646
},
4747
],
4848

49+
plugins: [
50+
[
51+
'docusaurus-plugin-generate-llms-txt',
52+
{
53+
outputFile: 'llms.txt', // defaults to llms.txt if not specified
54+
},
55+
],
56+
],
57+
4958
presets: [
5059
[
5160
'classic',

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@docusaurus/preset-classic": "3.7.0",
1919
"@mdx-js/react": "^3.0.0",
2020
"clsx": "^2.0.0",
21+
"docusaurus-plugin-generate-llms-txt": "^0.0.1",
2122
"prism-react-renderer": "^2.3.0",
2223
"react": "^19.0.0",
2324
"react-dom": "^19.0.0"

pnpm-lock.yaml

Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)