Skip to content

Commit 45e611c

Browse files
ryansolidclaude
andauthored
build: serve the 2.0 docs as docs.solidjs.com (#1699)
* 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 * 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 * docs: link the 1.x docs at v1.solidjs.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117BoWNxvzLd4SQ3p3kgdA1 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent ab46626 commit 45e611c

6 files changed

Lines changed: 21 additions & 6 deletions

File tree

‎netlify.toml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,18 @@
1212
from = "/reference/solid-web/server-functions/observe-calls"
1313
to = "/reference/solid-js/advanced/diagnostics-dev-hooks/observe"
1414
status = 301
15+
16+
# Solid 2.0 docs on docs.solidjs.com (merge only once docs.solidjs.com points at
17+
# this Netlify site). Production builds then emit docs.solidjs.com URLs in the
18+
# sitemap and llms files and drop the `X-Robots-Tag: noindex` header that
19+
# non-canonical hosts get. Deploy previews keep their own URL and noindex.
20+
[context.production.environment]
21+
SITE_URL = "https://docs.solidjs.com"
22+
23+
# The release-candidate host stays as an alias: dev warnings, JSDoc links and
24+
# older posts point at v2.solidjs.com, so send each path to its canonical page.
25+
[[redirects]]
26+
from = "https://v2.solidjs.com/*"
27+
to = "https://docs.solidjs.com/:splat"
28+
status = 301
29+
force = true

‎scripts/extract-diagnostics.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ One console entry per finding:
602602
[STRICT_READ_UNTRACKED] Reactive value "title" read directly in <TodoRow> will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function).
603603
in <App> › <TodoList> › <TodoRow>
604604
at http://localhost:5173/src/components/TodoRow.tsx:18:3
605-
[STRICT_READ_UNTRACKED] what it means and how to fix it: https://v2.solidjs.com${ROUTE_BASE}/strict-read-untracked
605+
[STRICT_READ_UNTRACKED] what it means and how to fix it: https://docs.solidjs.com${ROUTE_BASE}/strict-read-untracked
606606
[STRICT_READ_UNTRACKED] agent repair guide: ${SKILL_INSTALLED}#strict_read_untracked — ${SKILL_URL}#strict_read_untracked
607607
\`\`\`
608608

‎scripts/llms-small/primer.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ Also:
9595
`costs`, `end`).
9696
- Lint: `eslint-plugin-solid`, config `v2`
9797
(`import solid from "eslint-plugin-solid/configs/v2"`) or `v2-strict`.
98-
- Docs: https://v2.solidjs.com (Solid 2.0 docs; `/llms.txt` and
98+
- Docs: https://docs.solidjs.com (Solid 2.0 docs; `/llms.txt` and
9999
`/llms-full.txt` for agents). Migration guide: `documentation/solid-2.0/MIGRATION.md`
100100
in the repository.

‎src/routes/(0)index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "What Solid is, what these docs cover, and where to start reading."
55
---
66

77
:::note[These docs cover Solid 2.0]
8-
For Solid 1.x and SolidStart, see the [Solid 1.x documentation](https://docs.solidjs.com/).
8+
For Solid 1.x and SolidStart, see the [Solid 1.x documentation](https://v1.solidjs.com/).
99
:::
1010

1111
Solid is a framework for building user interfaces on the web.

‎src/routes/(5)guides/(17)ai-tools.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Each report carries a stable code in brackets, an `in` line naming the owners th
4949
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:
5050

5151
```
52-
[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
52+
[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
5353
[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
5454
```
5555

@@ -193,7 +193,7 @@ Tooling:
193193
- Verify a reactive change with `captureArtifact` and `expectNoDiagnostics` from `@solidjs/diagnostics`,
194194
or `POST /__solid/diagnostics` on the dev server with `{"method":"begin"}` ... `{"method":"end"}`.
195195
- Lint with `eslint-plugin-solid/configs/v2` (or `v2-strict`).
196-
- Docs: https://v2.solidjs.com/llms.txt; append `.md` to any page URL for its Markdown.
196+
- Docs: https://docs.solidjs.com/llms.txt; append `.md` to any page URL for its Markdown.
197197
```
198198

199199
Every name in the block is checked against the installed cheatsheet; when the cheatsheet and this page disagree, the cheatsheet matches your version.

‎src/routes/reference/(1)solid-js/(8)diagnostics/(0)index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ One console entry per finding:
2828
[STRICT_READ_UNTRACKED] Reactive value "title" read directly in <TodoRow> will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function).
2929
in <App> › <TodoList> › <TodoRow>
3030
at http://localhost:5173/src/components/TodoRow.tsx:18:3
31-
[STRICT_READ_UNTRACKED] what it means and how to fix it: https://v2.solidjs.com/reference/solid-js/diagnostics/strict-read-untracked
31+
[STRICT_READ_UNTRACKED] what it means and how to fix it: https://docs.solidjs.com/reference/solid-js/diagnostics/strict-read-untracked
3232
[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
3333
```
3434

0 commit comments

Comments
 (0)