Repository navigation
feat(site): 404 page, numbers from uptide 0.6.0 at build time, one dim - #4
Merged
Merged
Conversation
- Light dim is #6A675F on the landing page and its social preview (og.png re-rendered), as on the docs site: 4.5:1 for small text. - site/404.html: the wordmark linking to /, one line, links to / and /docs/, both themes, absolute URLs since Pages serves it everywhere. The deploy copies site/ whole, so it is published at the root. - The packs (count, list, and the table with precision, recall and ground-truth repositories) and the version are rendered at deploy from each pack's verification.json and ground-truth.json in the uptide checkout the docs build makes. The range comes from uptide's generated README table, and every other column must equal the JSON, so the page and the README cannot disagree. - Every terminal block names its public source and must match it, so a drifted run fails the deploy. The check block and the privacy statement are updated to 0.6.0's output. - Removed numbers no public run backs: the supabase list run, its tiles and footnote, and the hero timings. - The header's GitHub link keeps a name when its text is hidden on mobile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VcwhsQvN6vtpRCe4uwfe8z Signed-off-by: Claude <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.
Three changes: one light-theme dim color, a root 404 page, and landing numbers that come from uptide-dev/uptide at build time instead of being typed in.
1. Light dim
#6A675Feverywhere--dimchanges from#76736Bto#6A675F, the same as the docs site. The old value fell just under 4.5:1 for small text on#F4F2EC.og-image.html: the$prompt and the tag line use#6A675F. The dot grid'srgba(118,115,107,…)is the same color, so it becomesrgba(106,103,95,…).og.pngis re-rendered.docs-site/README.mdno longer describe a difference.#76736Bno longer appears in any of these files.2.
site/404.html/, the one line "This page is not here.", and links to/and/docs/. It has light and dark themes from the landing tokens,noindex, and no em dashes.scripts/assemble-site.mjscopiessite/whole, so the page lands at_site/404.html, the artifact root. Tests cover the page and the copy.3. Numbers from uptide 0.6.0
Packs and version are rendered at deploy, not written into the page.
index.htmlhasdata-uptideslots with non-numeric fallbacks.scripts/landing-data.mjsfills them from the uptide checkout that the docs build already makes:packages/cli/package.json;verification.jsonandground-truth.json.It renders 0.6.0 and 4 verified packs: ai, react, stripe and zod.
scripts/docs-packs.ts, enforced by its CI).#packs). "Supported today" lists the packs, and thefixexplanation links to the table instead of naming zod and stripe.Every other number traces to a public run, and the build checks it.
<pre>names its public source (data-source="docs/commands/check.md",README.md,docs/commands/fix.md). It must be a run of consecutive lines of a code block in that file, or the deploy fails.checkblock was no longer 0.6.0's output, which adds thecompiled 11 of 11 files…lines and aplansuggestion. The block is now generated from those exact lines.docs/privacy.md, the same way uptide's own test checks it. It now includes 0.6.0's paragraph oncheck/verifyloading your TypeScript.listrun (273 outdated, commit9d1661d, uptide 0.4.0);checkrun.engines), the default models and the$1cap (docs/models.md), exit code 1 (docs/commands/fix.md), andUPTIDE_TELEMETRY=1(docs/telemetry.md). For the files the page reads,mainand thev0.6.0tag are identical today.Smaller fixes
aria-label. This was the only Lighthouse failure.Checks
/and/404.html, light and dark, mobile and desktop presets. Dark runs used--force-dark-mode, and the background colors in Lighthouse's own screenshots confirm each theme rendered./docs/no/such/page/returns 404 with this page and its fonts load.scripts/check-links.mjsfinds 2,668 internal links on 45 pages, none broken.node --test 'test/*.test.mjs'passes 19 tests. The new ones include fake-checkout tests proving that a README/JSON disagreement, a changed number in a terminal block, and a missing or unknown slot each fail the build.Screenshots
/hero/#packs/docs/no/such/page/The full-page captures in
docs/screenshots/site-landing/are refreshed too.Notes
main, not the release tag. The page shows whatevermainof uptide-dev/uptide says, because it uses the docs checkout. Todaymainandv0.6.0agree. Ifmaingets a new pack or a version bump before an npm release, the landing will show it beforenpx uptidehas it. Pinning the landing's data to the latest release tag would be a small follow-up if you want that.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcwhsQvN6vtpRCe4uwfe8z
Generated by Claude Code