Skip to content

Commit e26f3d8

Browse files
committed
enable llms.txt generation with starlight plugin
This GEO optimization change enables llms.txt generation by integrating `starlight-llms-txt` into the Starlight configuration. What changed: - added `starlight-llms-txt` dependency - imported the plugin in `astro.config.ts` - registered `starlightLlmsTxt()` in Starlight `plugins` Why: - generate `llms.txt`, `llms-full.txt`, and `llms-small.txt` directly from docs - keep default plugin behavior first and only tune `promote`/`exclude` if needed Manual testing: - ran `bun lint` - ran `bun run build` - verified generated outputs in `dist/`: `llms.txt`, `llms-full.txt`, `llms-small.txt` Special considerations: - benchmark loop artifacts were intentionally not kept in the repository - no Search Console/Bing submission changes are included here
1 parent b7f589d commit e26f3d8

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig } from "astro/config";
22
import starlight from "@astrojs/starlight";
3+
import starlightLlmsTxt from "starlight-llms-txt";
34

45
const site = "https://agentic-engineering.swmansion.com/";
56
const repo = `https://github.com/software-mansion/agentic-engineering/`;
@@ -89,6 +90,7 @@ export default defineConfig({
8990
attrs: { name: "twitter:creator", content: "@swmansion" },
9091
},
9192
],
93+
plugins: [starlightLlmsTxt()],
9294
}),
9395
],
9496
});

bun.lock

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dependencies": {
1515
"@astrojs/starlight": "^0.37.6",
1616
"astro": "^5.6.1",
17-
"sharp": "^0.34.2"
17+
"sharp": "^0.34.2",
18+
"starlight-llms-txt": "^0.7.0"
1819
},
1920
"devDependencies": {
2021
"@astrojs/check": "^0.9.6",

0 commit comments

Comments
 (0)