Skip to content

build: point llms.txt at the Solid 2.0 files - #1655

Draft
ryansolid wants to merge 1 commit into
mainfrom
claude/llms-v2-pointer
Draft

ryansolid wants to merge 1 commit into
mainfrom
claude/llms-v2-pointer

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Before: the canonical https://docs.solidjs.com/llms.txt is 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.txt is a blockquote pointing tools at https://v2.solidjs.com/llms.txt and /llms-full.txt. The rest of the file is unchanged.

How: solidbase's llms: true has no header hook, so pnpm build gains a postbuild step (scripts/build-llms.mjs, the same script name as on v2-rebuild) that inserts the pointer into dist/llms.txt (and dist/llms-full.txt when a future solidbase emits one). Idempotent on re-run. A public/llms.txt override 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 of dist/llms.txt are now:

# SolidJS Documentation

> Solid 2.0 (release candidate) documentation for tools: https://v2.solidjs.com/llms.txt and https://v2.solidjs.com/llms-full.txt

Documentation for SolidJS, the signals-powered UI framework

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

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
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 09beb36
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs/deploys/6ad0fc44a40662bdec329a26
😎 Deploy Preview https://deploy-preview-1655--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants