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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user