From 37901a4da0a256f25e28c4627cf9828742c64a4e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 07:12:35 +0000 Subject: [PATCH 1/3] build: serve the 2.0 docs as docs.solidjs.com Production builds set SITE_URL to https://docs.solidjs.com, so the sitemap and llms files use it and the noindex header for non-canonical hosts is not written. v2.solidjs.com 301s to the same path on docs.solidjs.com. Merge only once docs.solidjs.com points at this site. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 --- netlify.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/netlify.toml b/netlify.toml index d0cd25cd43..ae5277a8cb 100644 --- a/netlify.toml +++ b/netlify.toml @@ -12,3 +12,18 @@ from = "/reference/solid-web/server-functions/observe-calls" to = "/reference/solid-js/advanced/diagnostics-dev-hooks/observe" status = 301 + +# Solid 2.0 docs on docs.solidjs.com (merge only once docs.solidjs.com points at +# this Netlify site). Production builds then emit docs.solidjs.com URLs in the +# sitemap and llms files and drop the `X-Robots-Tag: noindex` header that +# non-canonical hosts get. Deploy previews keep their own URL and noindex. +[context.production.environment] + SITE_URL = "https://docs.solidjs.com" + +# The release-candidate host stays as an alias: dev warnings, JSDoc links and +# older posts point at v2.solidjs.com, so send each path to its canonical page. +[[redirects]] + from = "https://v2.solidjs.com/*" + to = "https://docs.solidjs.com/:splat" + status = 301 + force = true From 8188238b5f049917ce9babe2eedfd977d4ed744b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 20:44:14 +0000 Subject: [PATCH 2/3] docs: point agent-facing links at docs.solidjs.com The AI tools page, the llms-small primer and the sample diagnostic in the diagnostics index name docs.solidjs.com, the host they will be served from once this PR lands. v2.solidjs.com redirects there. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 --- scripts/extract-diagnostics.mjs | 2 +- scripts/llms-small/primer.md | 2 +- src/routes/(5)guides/(17)ai-tools.mdx | 4 ++-- src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/extract-diagnostics.mjs b/scripts/extract-diagnostics.mjs index bdc0e33dda..0123523766 100644 --- a/scripts/extract-diagnostics.mjs +++ b/scripts/extract-diagnostics.mjs @@ -602,7 +602,7 @@ One console entry per finding: [STRICT_READ_UNTRACKED] Reactive value "title" read directly in will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function). in › › at http://localhost:5173/src/components/TodoRow.tsx:18:3 -[STRICT_READ_UNTRACKED] what it means and how to fix it: https://v2.solidjs.com${ROUTE_BASE}/strict-read-untracked +[STRICT_READ_UNTRACKED] what it means and how to fix it: https://docs.solidjs.com${ROUTE_BASE}/strict-read-untracked [STRICT_READ_UNTRACKED] agent repair guide: ${SKILL_INSTALLED}#strict_read_untracked — ${SKILL_URL}#strict_read_untracked \`\`\` diff --git a/scripts/llms-small/primer.md b/scripts/llms-small/primer.md index 08c553a16f..a73ff4f461 100644 --- a/scripts/llms-small/primer.md +++ b/scripts/llms-small/primer.md @@ -95,6 +95,6 @@ Also: `costs`, `end`). - Lint: `eslint-plugin-solid`, config `v2` (`import solid from "eslint-plugin-solid/configs/v2"`) or `v2-strict`. -- Docs: https://v2.solidjs.com (Solid 2.0 docs; `/llms.txt` and +- Docs: https://docs.solidjs.com (Solid 2.0 docs; `/llms.txt` and `/llms-full.txt` for agents). Migration guide: `documentation/solid-2.0/MIGRATION.md` in the repository. diff --git a/src/routes/(5)guides/(17)ai-tools.mdx b/src/routes/(5)guides/(17)ai-tools.mdx index c9b50a51ec..fc93dbe9ab 100644 --- a/src/routes/(5)guides/(17)ai-tools.mdx +++ b/src/routes/(5)guides/(17)ai-tools.mdx @@ -49,7 +49,7 @@ Each report carries a stable code in brackets, an `in` line naming the owners th The first report of each code ends with a footer: a line for a person, linking the code's page in the [diagnostics reference](/reference/solid-js/diagnostics), then a line for an assistant, naming the installed repair guide and the same file on GitHub, anchored to that code: ``` -[REACTIVE_WRITE_IN_OWNED_SCOPE] what it means and how to fix it: https://v2.solidjs.com/reference/solid-js/diagnostics/reactive-write-in-owned-scope +[REACTIVE_WRITE_IN_OWNED_SCOPE] what it means and how to fix it: https://docs.solidjs.com/reference/solid-js/diagnostics/reactive-write-in-owned-scope [REACTIVE_WRITE_IN_OWNED_SCOPE] agent repair guide: node_modules/solid-js/skills/reactivity-diagnostics/SKILL.md#reactive_write_in_owned_scope — https://github.com/solidjs/solid/blob/next/packages/solid/skills/reactivity-diagnostics/SKILL.md#reactive_write_in_owned_scope ``` @@ -193,7 +193,7 @@ Tooling: - Verify a reactive change with `captureArtifact` and `expectNoDiagnostics` from `@solidjs/diagnostics`, or `POST /__solid/diagnostics` on the dev server with `{"method":"begin"}` ... `{"method":"end"}`. - Lint with `eslint-plugin-solid/configs/v2` (or `v2-strict`). -- Docs: https://v2.solidjs.com/llms.txt; append `.md` to any page URL for its Markdown. +- Docs: https://docs.solidjs.com/llms.txt; append `.md` to any page URL for its Markdown. ``` Every name in the block is checked against the installed cheatsheet; when the cheatsheet and this page disagree, the cheatsheet matches your version. diff --git a/src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx b/src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx index 7fb9615262..5663afec5e 100644 --- a/src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx +++ b/src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx @@ -28,7 +28,7 @@ One console entry per finding: [STRICT_READ_UNTRACKED] Reactive value "title" read directly in will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function). in › › at http://localhost:5173/src/components/TodoRow.tsx:18:3 -[STRICT_READ_UNTRACKED] what it means and how to fix it: https://v2.solidjs.com/reference/solid-js/diagnostics/strict-read-untracked +[STRICT_READ_UNTRACKED] what it means and how to fix it: https://docs.solidjs.com/reference/solid-js/diagnostics/strict-read-untracked [STRICT_READ_UNTRACKED] agent repair guide: node_modules/solid-js/skills/reactivity-diagnostics/SKILL.md#strict_read_untracked — https://github.com/solidjs/solid/blob/next/packages/solid/skills/reactivity-diagnostics/SKILL.md#strict_read_untracked ``` From a49d09e3ffcb42dca2add85d07c82af2b8a16c2f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 21:25:27 +0000 Subject: [PATCH 3/3] docs: link the 1.x docs at v1.solidjs.com Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 --- src/routes/(0)index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(0)index.mdx b/src/routes/(0)index.mdx index 75c24576eb..78dae51261 100644 --- a/src/routes/(0)index.mdx +++ b/src/routes/(0)index.mdx @@ -5,7 +5,7 @@ description: "What Solid is, what these docs cover, and where to start reading." --- :::note[These docs cover Solid 2.0] -For Solid 1.x and SolidStart, see the [Solid 1.x documentation](https://docs.solidjs.com/). +For Solid 1.x and SolidStart, see the [Solid 1.x documentation](https://v1.solidjs.com/). ::: Solid is a framework for building user interfaces on the web.