Commit 706a5d4
Add llms.txt generation for LLM-friendly docs (#920)
* Add llms.txt and llms-full.txt generation for LLM-friendly docs
Add a build script that generates llms.txt (lightweight index) and
llms-full.txt (full documentation content) from the Starlight doc
sources. These files follow the llms.txt specification, making the
documentation easily consumable by LLMs and indexable by services
like Context7 with minimal token usage.
- llms.txt: structured index with title, description, and URL per page
- llms-full.txt: all doc content as clean markdown (MDX/HTML stripped)
- Runs automatically before each build via package.json scripts
https://claude.ai/code/session_01Jj2MZELm7URFgydFbwwA8m
* Use starlight-llms-txt plugin and enable Starlight in production
Replace the custom build script with the purpose-built
starlight-llms-txt plugin, which generates llms.txt, llms-full.txt,
and llms-small.txt from the rendered Starlight documentation at build
time. This makes the docs easily accessible for LLMs and indexable by
services like Context7 with minimal token usage.
- Remove production guard so Starlight builds docs in all environments
- Add starlight-llms-txt plugin with RocketSim project name/description
- Remove custom generate-llms-txt.mjs script (replaced by plugin)
- Revert package.json build script and .gitignore changes
https://claude.ai/code/session_01Jj2MZELm7URFgydFbwwA8m
* fix: render raw content
* feat: postprocess llms.txt files
* fix: llms best practises
* fix: remove images in the small llms.txt variant only
* fix: formatter
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5222f41 commit 706a5d4
File tree
10 files changed
+278
-15
lines changed- docs
- src
- content/docs/docs/features
- app-actions
- capturing
- statusbar-appearance
- integrations
- styles
10 files changed
+278
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
| 145 | + | |
135 | 146 | | |
136 | 147 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments