docs: add auto-generated llms-full.txt - #309
Merged
Merged
Conversation
Add scripts/generate-llms-full.mjs, which concatenates the full docs corpus (41 pages, frontmatter and HTML comments stripped) into docs/public/llms-full.txt, served at twd.dev/llms-full.txt as the companion to the curated llms.txt. Wire it into docs:build so GitHub Pages regenerates it on every deploy, and gitignore the generated artifact. Refresh the curated llms.txt framework framing to match the broadened positioning and link to the full file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
llms-full.txt(the full docs concatenated into one file for LLM ingestion), the companion to the existing curatedllms.txt.scripts/generate-llms-full.mjs(new): walks the docs corpus (41 pages), strips frontmatter and HTML comments, orders pages to mirrorllms.txt, and writesdocs/public/llms-full.txt. Skips the component-only homepage.package.json:docs:buildnow runs the generator before VitePress, so the GitHub Pages deploy regenerates and serves it attwd.dev/llms-full.txt..gitignore: the generateddocs/public/llms-full.txtis a build artifact, always fresh (not committed).docs/public/llms.txt: refreshed the stale "React, Vue, Angular, Solid" framing to match the broadened positioning, and linked to the full file.Why
llms.txtis a concise index;llms-full.txtgives AI tools (Cursor, Copilot, Claude, Perplexity) the entire documentation in one fetch. GitMCP and DeepWiki also read these files.Verification
npm run docs:buildgenerates 41 pages and bothllms.txtandllms-full.txtend up indist/(deployed). No dead links.🤖 Generated with Claude Code