feat(docs): publish llms.txt for AI agent consumption

Add the starlight-llms-txt plugin so the docs build emits llms.txt,
llms-full.txt, and llms-small.txt alongside the regular pages, making
the manual queryable by MCP-compatible agents without depending on a
third-party indexing service.

Also bump js-yaml, nanoid, and sharp in docs/site to clear three
high-severity advisories (quadratic YAML omap parsing, a zero-size
nanoid loop, and inherited libvips CVEs) flagged by npm audit while
touching the same lockfile.
This commit is contained in:
2026-08-14 15:50:21 -04:00
parent 7875b83a94
commit 96df21444b
5 changed files with 386 additions and 142 deletions
+2
View File
@@ -2,6 +2,7 @@ import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator';
import starlightCatppuccin from '@catppuccin/starlight';
import starlightLlmsTxt from 'starlight-llms-txt';
import sidebar from './src/sidebar.json' with { type: 'json' };
export default defineConfig({
@@ -34,6 +35,7 @@ export default defineConfig({
dark: { flavor: "mocha", accent: "green" },
light: { flavor: "latte", accent: "sky" },
}),
starlightLlmsTxt(),
],
expressiveCode: {
// Shiki ships both Catppuccin flavours; Starlight picks by the