Skip to content

Commit aa54bef

Browse files
authored
docs: support llms.txt (#335)
* chore: upgrade to rspress v2 * fix: use file instead of dir for config and cli pages * fix: explicit files in brownfield * fix: gradle -> groovy * chore: add changeset * chore: add plugin-llms * docs: configure plugin llms * chore: changset * fix: lint
1 parent ffe0cbd commit aa54bef

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

.changeset/bright-pans-reflect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'rnef-docs': patch
3+
---
4+
5+
docs: add `llms.txt` & `llms-full.txt`

pnpm-lock.yaml

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

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"dependencies": {
1111
"@callstack/rspress-theme": "^0.0.3",
12+
"@rspress/plugin-llms": "^2.0.0-beta.6",
1213
"rspress": "^2.0.0-beta.6",
1314
"rspress-plugin-vercel-analytics": "^0.3.0"
1415
},

website/rspress.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as path from 'node:path';
22
import { pluginCallstackTheme } from '@callstack/rspress-theme/plugin';
3+
import { pluginLlms } from '@rspress/plugin-llms';
34
import { defineConfig } from 'rspress/config';
45
import vercelPluginAnalytics from 'rspress-plugin-vercel-analytics';
56

67
export default defineConfig({
7-
plugins: [pluginCallstackTheme(), vercelPluginAnalytics()],
88
root: path.join(__dirname, 'docs'),
99
title: 'React Native Enterprise Framework',
1010
icon: '/logo.svg',
@@ -29,4 +29,12 @@ export default defineConfig({
2929
'Copyright © 2025 <a href="https://callstack.com">Callstack</a>.',
3030
},
3131
},
32+
plugins: [
33+
pluginCallstackTheme(),
34+
// @ts-expect-error outdated @rspress/shared declared as dependency
35+
vercelPluginAnalytics(),
36+
pluginLlms({
37+
exclude: ({ page }) => page.routePath.includes('404'),
38+
}),
39+
],
3240
});

0 commit comments

Comments
 (0)