Repository navigation
Conversation
The 1.x index at docs.solidjs.com/llms.txt is the canonical one that Context7 and per-page fetchers read, so an agent that starts there learns 1.x only. Add a postbuild step (`pnpm build:llms`, the same name the v2-rebuild branch uses) that inserts one blockquote line under the title naming the Solid 2.0 release-candidate files on v2.solidjs.com. solidbase 0.6.13 exposes `llms` as a boolean only and writes the index during `buildStart` into `node_modules/.solidbase/llms`, with no hook to decorate it; a `public/llms.txt` would replace the generated index rather than annotate it. Rewriting the built file after `vite build` keeps the generator untouched. The script also covers `llms-full.txt` when a future solidbase emits one; today main produces `llms.txt` only. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ka6h98478umeFadcRV1KLY
|
|
✅ Deploy Preview for solid-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Before: the canonical
https://docs.solidjs.com/llms.txtis the 1.x index with no mention of 2.0, so every tool that reads the canonical URL (Context7, per-page fetchers, agents following the llms.txt convention) learns 1.x and never finds the 2.0 docs at v2.solidjs.com.After: the first line under the title of
llms.txtis a blockquote pointing tools athttps://v2.solidjs.com/llms.txtand/llms-full.txt. The rest of the file is unchanged.How: solidbase's
llms: truehas no header hook, sopnpm buildgains a postbuild step (scripts/build-llms.mjs, the same script name as onv2-rebuild) that inserts the pointer intodist/llms.txt(anddist/llms-full.txtwhen a future solidbase emits one). Idempotent on re-run. Apublic/llms.txtoverride would replace the generated index wholesale, and a Vite plugin would have to couple to solidbase's internal output path, so the postbuild rewrite is the least invasive route.Built locally with
pnpm build; the first lines ofdist/llms.txtare now:At the stable release, the two sites swap roles (2.0 at the canonical URL, 1.x pointed at from it); this line is the no-regret part that can land now.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ka6h98478umeFadcRV1KLY
Generated by Claude Code