Repository navigation
feat(docs): prototype a standalone docs home page - #424
Open
nickvigilante wants to merge 11 commits into
Open
nickvigilante wants to merge 11 commits into
nickvigilante wants to merge 11 commits into
Conversation
Adds /mockups/home-in-docs, with the home page inside the docs shell, and /mockups/home-landing, a standalone landing page, so the two directions can be compared in a browser. They are a design prototype for review, not for merge. Assisted-by: AI
Logos are monochrome at rest in both mockups, with filters tuned so every mark measures at least 3:1 against its background in light and dark mode. The in-docs logo cards stay compact on phones, the in-docs tabs use short labels that fit a phone-width tab bar, and the landing page's install command wraps only at spaces. Assisted-by: AI
The landing page option is the one to take forward, so this replaces both mockups with a single prototype at /home-prototype/ that renders from content instead of hard-coded data, and drops the in-docs option, which stays in this branch's history. The content lives in a home.json file at the docs root, owned by the docs repo. Its schema is in docs-config so the docs repo's tooling can validate it too: a strict zod schema with length caps, routes limited to internal paths, external links limited to a short host list, and a size cap. The site resolves every link against the page tree, takes titles from the pages unless the file overrides them, builds the section cards from the sidebar's own top-level sections, and drops anything it can't resolve instead of rendering a dead link. Without a home.json it falls back to a fixture with the same content. The page uses coder.com's marketing tokens and type, follows the reader's light or dark theme, and uses Phosphor icons for anything without a mark in the docs repo. A bar at the bottom switches heading tracking between coder.com's values and the docs pages' values, so both can be compared. The route is reserved, marked noindex, and left out of the sitemap and the search index. Assisted-by: AI
The layout's DOCS_PUBLISH check rendered a 404, but the export still wrote home-prototype/index.html as a "Page not found" page, and the page's flight data still carried the whole prototype, so a publish would have shipped both. The route files now end in .prototype.tsx and next.config only adds that extension outside a publish, so a publish compiles no route there at all. The single-version e2e asserts that the archive has nothing under it. Outside a publish the page is emitted, and the per-pass page count failed on it because it isn't in the slug manifest. The count now leaves out pages under any route in RESERVED_ROUTES, which the app owns. The page is added to the axe pass. In More contrast its secondary text kept coder.com's AA values and failed the 7:1 rule, so it now takes the theme's More contrast muted and faint tokens. Comment blocks in the prototype files are cut to one line each. Assisted-by: AI
DOCS-1904 Redesign the docs home page
Redesign the docs home page so every reader (evaluators, platform teams, template authors, developers, and AI and agent teams) can see where to go from the first screen, in a visually appealing way that follows coder.com's design system. coder/coder#32714 started as a small step (two groups of cards on Inputs
Options being mocked up
Decisions pending
Done when |
nickvigilante
had a problem deploying
to
docs-preview
November 30, 2026 19:38 — with
GitHub Actions
Error
nickvigilante
had a problem deploying
to
docs-preview
November 30, 2026 19:40 — with
GitHub Actions
Error
The logo imports typechecked locally only because next-env.d.ts, which references Next's static image types, exists after a build or a dev run. It is gitignored, and CI typechecks before building, so every import failed there. A committed declaration references the same types. Assisted-by: AI
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
The wall showed air-gapped networks in OpenShift's place because no mark had been found, but the search covered only coder/coder's site icons. The docs tree ships one, which the sidebar already uses for the OpenShift install page, so the wall links that page again. The copy here is cropped to the artwork and set to brand black. The original's padding and mid grey made it render smaller and fainter than the marks beside it. Assisted-by: AI
nickvigilante
had a problem deploying
to
docs-preview
December 2, 2026 17:21 — with
GitHub Actions
Error
Docs preview deploymentRendered with docs-engine b8ae563 from coder/coder at 1ab0cc4db5ea8c2375c8940d23830fd049b33787: https://coder-docs-pbj2tj1ws.coderite.app The preview is behind Vercel authentication; sign in with your Coder Vercel account. |
nickvigilante
marked this pull request as ready for review
December 2, 2026 17:37
The hero window repeated the install commands from coder.com/downloads. It now walks from coder login to coder ssh through a Docker template, and links the CLI reference, so the page adds something the downloads page doesn't. The schema key is terminal, with one to six steps and an optional link; the Windows line is gone. The page no longer mentions Agent Firewall. The AI door links Coder Agents getting started instead, and sections.descriptions lets the file override a section card's description, which the AI Governance card needs because its manifest description names Agent Firewall. Assisted-by: AI
HomeLayout draws its header search as a fully round pill, which coder.com's design system doesn't use. Both search bars on the page now take the hero search's 4px corners, coder.com's control radius. The rule sits outside a cascade layer, so it overrides the header's rounded-full utility. Assisted-by: AI
…e prototype coder.com frames each block with vertical guides and sets a small Blink rectangle, its registration mark, wherever a guide crosses a section's top hairline. The prototype now does the same, with marks 5 by 7px so a 1px line runs through the middle. Content sits 32px inside the guides, 16px on phones, as it does there; the frame grows to 1344px so content keeps its 1200px width. The hero has guides and no marks. The footer ends with coder.com's dotted wordmark, ported from its footer component with the 5px grid. A canvas draws it over a CSS mask fallback, and the dots move away from the pointer and spring back. It stays still under reduced motion, from the system setting or the docs' motion preference, and settles at once when either changes. The page's own reduced motion rules now also give way to the docs' full motion setting. Assisted-by: AI
With guides on the page, HomeLayout's header sat about 50px outside them at 1440px, while coder.com's nav starts and ends on its guides. From 1280px the header now takes the page frame through Fumadocs' --fd-layout-width token and the gutter as its padding, so the logo and the last control sit on the guides. Narrower headers keep HomeLayout's own spacing, because six links, the search, and the version switcher only fit on one line from 1280px. Assisted-by: AI
nickvigilante
had a problem deploying
to
docs-preview
December 2, 2026 20:19 — with
GitHub Actions
Error
nickvigilante
had a problem deploying
to
docs-preview
December 2, 2026 20:23 — with
GitHub Actions
Error
…ot mark The dot mark carried its own copy of the reduced motion rule and its listeners. docs-ui already exports both as prefersReducedMotion and onMotionPreferenceChange, which the TOC and the video player use, so the mark now does too. A theme, contrast, size, or motion change while the dots are moving no longer starts a second animation loop; the running loop picks the change up on its next frame. Assisted-by: AI
nickvigilante
requested a deployment
to
docs-preview
December 2, 2026 20:32 — with
GitHub Actions
Waiting
nickvigilante
requested a deployment
to
docs-preview
December 2, 2026 20:36 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
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.
Merge order
Not for merge yet: this is a prototype for the design review with Ben, and nothing depends on it. coder/coder#32714 adds the
docs/home.jsonit reads. Either can land first, because without the file the page falls back to a fixture with the same content.Summary
A full prototype of the standalone landing page for the docs home (option B): no sidebar, coder.com's marketing design system, and content from a
docs/home.jsonfile that the docs repo owns. It renders at/home-prototype/on local and fixture builds and is compiled out of every publish. It replaces both mockups from the first commit; option A, the home page inside the docs shell, stays in this branch's history.Design
The page runs top to bottom: a hero with the docs search, five popular pages, the Quickstart and Install buttons, and a dark terminal window that walks from
coder logintocoder ssh; "Find your path", with a card for each of four audiences; "Works with", a logo wall of IDEs, agents, platforms, and identity providers; "Browse the docs", a card for each top-level sidebar section; and a help band and footer. It is built on stock Fumadocs:HomeLayoutfor the navbar and phone menu,FullSearchTriggerfor the search, andCardfor the section cards. It follows the reader's light or dark setting. Both search bars have coder.com's 4px control corners instead ofHomeLayout's round pill. Every block carries coder.com's precision grid: vertical guides on the frame edges with content 32px inside them (16px on phones), and a 5 by 7px Blink registration mark wherever a guide crosses a block's top hairline. From 1280px the header lines up with the guides through Fumadocs'--fd-layout-widthtoken. The footer ends with coder.com's dotted wordmark, ported from its footer component: the dots move away from the pointer and spring back, and stay still under reduced motion, from the system setting or the docs' Motion setting, read through docs-ui's motion helpers. Generic icons are Phosphor (@phosphor-icons/react/ssr, a new dependency), and brand marks are SVG files copied from coder/coder'ssite/static/icon, except OpenShift, which comes fromdocs/images/icons.The content schema is in
packages/docs-config/src/home.ts, so coder/coder's tooling can validate against the same contract. Links name pages by route and take the page's own title unless the file sets one. The section cards follow the sidebar, so the file only sets their icons and leaves some out. The hero window's steps are underterminal, so the page doesn't repeat coder.com/downloads, andsections.descriptionscan override a section card's description. The AI Governance card uses one and the AI door links Coder Agents getting started, so nothing on the page mentions Agent Firewall. Every route and#fragmentis checked against the version's pages, and anything that doesn't resolve is left out rather than rendered as a dead link. Only single-version builds read$DOCS_ROOT/home.json; others use the fixture.A bar at the bottom of the page is for review only. It switches heading tracking between coder.com's values and the docs pages' current values (
?tracking=docsopens with the docs values), names the content source, and lists any links it dropped. Both fonts already match: the docs pages load the same FT System Mono weight as coder.com, so only tracking differs.The second commit keeps the prototype out of publish builds. The layout's
DOCS_PUBLISHcheck returned a 404, but the export still wrote a "Page not found" page whose flight data carried the whole prototype. The route files now end in.prototype.tsx, andnext.config.mjsadds that page extension only outside a publish. The per-pass page count inbuild-helpers.mjsnow leaves out pages underRESERVED_ROUTES, because the fixture build emits this page but the slug manifest doesn't list it.Open questions for the review:
[...slug]and a dedicated root page? The split changes how versioned roots such as/@main/resolve.docs/home.json, or use YAML compiled by coder/coder's manifest generator? And who owns the schema?site/static/icon, outside the synceddocs/tree. Docker, Kubernetes, and OpenShift also have marks indocs/images/icons, which the sidebar manifest already uses. Their licensing is unclear. Should we copy the rest intodocs/images/icons, sync them from the site folder, or keep them in the engine as now?HomeLayoutwraps "Coder Docs", "Get started", and "Coder Agents" onto two lines from 640 to 1279px, and the header overflows by up to 35px from 640 to 675px. Fewer header links, the menu button up to 1280px (overridingHomeLayout's breakpoints), or an icon-only header search below 1280px?--radius-control. coder.com's own SearchField and the docs sidebar search use 6px. Which should the docs use?QA
The PR preview can't show this page:
engine-pr-preview.ymlbuildsapps/offlinedocs, and the prototype is inapps/docs. To run it locally, check out coder/coder#32714. Then inapps/docs, runpnpm syncandpnpm exec next dev -p 3000withDOCS_VERSION_ID=main DOCS_VERSION_REF=<its short SHA> DOCS_VERSION_ROOT=1 DOCS_ROOT=<that checkout>/docsset for both. Without those variables, the fixture corpus serves the page and most of its links drop out. I checked the steps below in Chromium. Steps 7 and 8 and the overflow check were also run in Firefox.http://localhost:3000/home-prototype/. Expected: the hero shows "Coder documentation", a search box with square 4px corners like the one in the navbar, five popular pages, two buttons, and a dark terminal window with five CLI steps. The theme matches your OS setting, and the bar at the bottom reads "Content: docs/home.json" with no issues.Pages to compare
The preview alias builds
apps/offlinedocs, so it has no copy of this page./home-prototype/from QATesting
New unit tests cover a Windows-saved file (byte order mark and CRLF); the rejection of external, protocol-relative,
javascript:,.., and query-string routes; the rule that an integration sets exactly one of a logo or an icon; a long hostile route that must not backtrack; title fallback and overrides; dropping and reporting a missing route or heading; and section cards that follow the sidebar. AcountPagestest that writes a page under every reserved route failed before the count change and passes after it. Typecheck and lint pass for all 31 workspace tasks, including a typecheck withnext-env.d.tsleft out, as in CI. The first push failed CI's typecheck because only that generated, gitignored file declared the SVG imports;image-types.d.tsnow does. The unit suites pass (docs-config 110, docs-build 198, docs-site 407, with 1 skipped). The fixture build passes, as do its first-load, CSP, URL parity, and playground checks.The single-version publish e2e now asserts that the archive has nothing under
home-prototype/. Before the page-extension change, the archive held that page with the prototype in its flight data; now the e2e passes and the published archive no longer carries the page, its chunks, or the logo files. The CI axe pass, with this page added at desktop and 390px, ran 124 scans with 0 WCAG violations, and the keyboard check ran 8 times with 0 failures. Its first run failed AAA contrast in More contrast, which led to the token change.Against #32714's docs, all 54 rendered internal links were in the slug manifest at that point, and nothing overflows sideways at 390, 768, 1024, or 1440px. Every logo measures at least 3:1 in both themes (OpenShift 16:1 in dark and 19:1 in light, after cropping it and setting it to brand black so it matches its row), and all 96 tab stops show visible focus. A local e2e run after a multi-version build fails on "no corpus image outside the version prefix", because
public/keeps the earlier sync's images; it passes with a cleanpublic/, as in CI.The design-note commits (the CLI walkthrough, search corners, grid marks, footer dot mark, header alignment, and motion helpers) were checked locally while GitHub Actions was down, so CI hasn't run on them. New unit cases cover the
terminalschema and a section description override. Typecheck, lint, stylelint, and the docs-config (110) and home-resolve tests pass. The fixture build passes with its CSP, first-load, playground, and URL parity checks; the CI axe pass ran 124 scans with 0 WCAG violations, and the keyboard check ran 8 times in Chromium and Firefox with 0 failures. Against #32714's current docs, all 55 rendered internal links return 200 and nothing on the page mentions Agent Firewall. Nothing scrolls sideways at 390, 768, 1024, or 1440px in Chromium or Firefox. In both browsers the dot mark draws, moves on hover, recolours on a theme change, stays still under the system setting and the docs' Reduced setting, and settles at once when either changes mid-animation. Every mark measures centred on its guide and hairline, and from 1280 to 1920px the header starts and ends on the guides.Upstream
No new issue needed. With the phone menu open, axe reports one
aria-hidden-focusviolation from the focus proxy of Radix's NavigationMenu insideHomeLayout's menu toggle. Radix already tracks it as radix-ui/primitives#3085, open since August 2024, and fumadocs-ui 16.19.8, the latest, still builds the navbar on that component (Radix NavigationMenu 1.4.1, also the latest). The CI pass doesn't open the menu, so it doesn't fail there. Nothing filed. Everything else here is Coder branding, content, and routing, so there's nothing else to send upstream.DOCS-1904
Plan and decision log
Goal
Finish option B (a standalone landing page with no sidebar) as a complete, reviewable prototype in coder/docs-engine.
Repurpose coder/coder#32714 to carry the content file the page reads.
Nothing merges this week: Ben owns the engine decisions.
Decisions from Nick
No change to the docs theme.
Brand logos stay as the repo's own SVG files.
What was built
docs-engine, prototype route
/home-prototype/:docs/home.json.packages/docs-config/src/home.ts(strict zod, length caps, 64 KB size cap, byte order mark stripped), so coder/coder's tooling could validate the same contract.$DOCS_ROOT/home.jsonwhen the build is in single-version mode and the file exists, and falls back to a committed fixture with the same content otherwise.Titles come from the synced pages unless the file overrides them, so the file cannot drift from the page titles.
#fragmentmust be a heading on that page; icons and logos resolve through static allowlists.@phosphor-icons/react/ssr, pinned at 2.1.10).HomeLayoutand its stock mobile menu.Social links move into the menu so the navbar fits at 1024px.
?tracking=docspresets it.The bar also shows the content source and any link issues.
noindex, not in the sitemap or search index, and the route is inRESERVED_ROUTES.The route files end in
.prototype.tsx, andnext.config.mjsadds that page extension only outside a publish, so a publish (DOCS_PUBLISH=1) compiles no route there.A
notFound()gate in the layout was tried first and dropped: the export still wrote a soft 404 page whose flight data carried the whole prototype.The per-pass page count now leaves out pages under reserved routes, which the fixture build needed.
In More contrast its secondary text takes the theme's 7:1 muted and faint tokens instead of coder.com's AA values.
apps/offlinedocs, which has no such route, so the page can only be seen on a local or fixture build ofapps/docs.--radius-control, instead ofHomeLayout's fully round pill.coder logintocoder sshreplaces the install commands, so the page does not repeat coder.com/downloads.The schema key is
terminal(title, one to six steps, optional link); the Windows line is gone.The hero has guides and no marks.
Content sits 32px inside the guides (16px at 760px and below), as live coder.com measures; the frame grows from 1280px to 1344px so content stays 1200px wide.
From 1280px the header lines up with the guides through Fumadocs'
--fd-layout-widthtoken and the gutter as its padding.FooterDotMark(grid5 pattern), a canvas over a CSS mask fallback, decorative andaria-hidden.Dots move away from the pointer and spring back.
Under reduced motion it stays still and settles at once if the setting changes; it reads the setting through docs-ui's
prefersReducedMotionandonMotionPreferenceChange, as the TOC and video player do.The page's own reduced motion rules now give way to the docs' Full motion setting too.
coder/coder #32714:
docs/home.json, formatted with Biome.docs/README.mdkeeps its cards and stays the home page on GitHub, in the classic offline docs, and in engine builds of versions without the file, so it is not hidden.Content choices
docs/images/icons/openshift.svg, the mark coder/coder's sidebar already uses for the OpenShift install page.An earlier version swapped in Air-gapped networks because the search for a mark had covered only
site/static/icon.site/static/icon/k8s.svg.The AI door links Coder Agents getting started in its place, and a new
sections.descriptionsoverride gives the AI Governance card a description without it.The docs' own navigation tree and search still list the Agent Firewall pages, because they are the real docs.
coder login,coder templates init --id docker,coder templates push,coder create --template docker,coder ssh, linking the CLI reference.The syntax was checked against
docs/reference/cli.Out of scope until Ben weighs in
DocsShellso the landing renders at/.home.jsonthroughscripts/sync-docs.mjsfor multi-version builds.The open questions are listed under Design above.
Verification
Typecheck also runs without
next-env.d.ts, as CI does; the first push failed there because only that generated file declared the SVG imports.The dot mark was checked to draw, to react to the pointer, to recolour on a theme change, to stay still under the system setting and the docs' preference, and to settle at once when either changes mid-animation, in Chromium and Firefox; the marks were measured centred on their guide and hairline, and the header on the guides from 1280px to 1920px.
The design-note round was verified locally while GitHub Actions was down: the fixture build, CSP, first-load, playground, and URL parity checks, the CI axe pass (124 scans, 0 WCAG violations) and keyboard check (8 runs in Chromium and Firefox, 0 failures), and overflow at 390/768/1024/1440 in Chromium and Firefox.
pnpm run typecheckinapps/docsresyncs the fixture corpus throughpretypecheck, so it is not run beside a dev server on real content;pnpm exec tsc -p tsconfig.json --noEmitis.make lint/emdash lint/docs-manifest lint/markdown, and Biome ondocs/home.json.The loader uses
path.join, and the page count joins path segments with/so it matches on Windows.🤖 Built with AI assistance.