Skip to content

feat(docs): prototype a standalone docs home page - #424

Open
nickvigilante wants to merge 11 commits into
mainfrom
vigilante/docs-home-prototype
Open

nickvigilante wants to merge 11 commits into
mainfrom
vigilante/docs-home-prototype

Conversation

@nickvigilante

@nickvigilante nickvigilante commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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.json it 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.json file 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 login to coder 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: HomeLayout for the navbar and phone menu, FullSearchTrigger for the search, and Card for the section cards. It follows the reader's light or dark setting. Both search bars have coder.com's 4px control corners instead of HomeLayout'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-width token. 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's site/static/icon, except OpenShift, which comes from docs/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 under terminal, so the page doesn't repeat coder.com/downloads, and sections.descriptions can 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 #fragment is 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=docs opens 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_PUBLISH check 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, and next.config.mjs adds that page extension only outside a publish. The per-pass page count in build-helpers.mjs now leaves out pages under RESERVED_ROUTES, because the fixture build emits this page but the slug manifest doesn't list it.

Open questions for the review:

  1. Route: special-case the empty slug inside the catch-all, or split it into [...slug] and a dedicated root page? The split changes how versioned roots such as /@main/ resolve.
  2. Data: keep docs/home.json, or use YAML compiled by coder/coder's manifest generator? And who owns the schema?
  3. Versions without the file: keep today's README page in the docs shell?
  4. Failure policy: should an invalid file fall back to the README page with a sync warning, or fail a strict build like other sync defects?
  5. Logos: 16 of the 19 marks exist only in coder/coder's site/static/icon, outside the synced docs/ tree. Docker, Kubernetes, and OpenShift also have marks in docs/images/icons, which the sidebar manifest already uses. Their licensing is unclear. Should we copy the rest into docs/images/icons, sync them from the site folder, or keep them in the engine as now?
  6. Metadata for the root: title, description, Open Graph card, and canonical.
  7. Heading tracking: should the docs pages adopt coder.com's tighter values too, or should only the landing page use them?
  8. Header below 1280px, which predates the grid: with six links, the search, and the version switcher, HomeLayout wraps "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 (overriding HomeLayout's breakpoints), or an icon-only header search below 1280px?
  9. Search corners: 4px matches the hero search and coder.com's --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.yml builds apps/offlinedocs, and the prototype is in apps/docs. To run it locally, check out coder/coder#32714. Then in apps/docs, run pnpm sync and pnpm exec next dev -p 3000 with DOCS_VERSION_ID=main DOCS_VERSION_REF=<its short SHA> DOCS_VERSION_ROOT=1 DOCS_ROOT=<that checkout>/docs set 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.

  1. Open 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.
  2. Switch the theme in the display settings in the navbar. Expected: both themes read well. Logos are grey and take their brand colour on hover or focus.
  3. In the bottom bar, switch Heading tracking to "Docs today". Expected: the headings loosen slightly. Switch back to compare.
  4. In the display settings, choose More contrast. Expected: the secondary text (section intros, card descriptions, row labels, and the footer) gets darker in light mode and lighter in dark mode.
  5. Make the window narrower than 1024px, then use phone width (or device mode at 390px). Expected: a menu button holds the section links and the social links. At 390px, the hero shows four popular pages, and nothing scrolls sideways.
  6. Press Tab through the page. Expected: every link and control shows a visible focus ring.
  7. Scroll to the footer and move the pointer across the dotted CODER wordmark. Expected: the dots move away from the pointer and spring back. Then set Motion to Reduced in the display settings, or turn on reduced motion in the OS. Expected: the dots stay still, and dots that were moving settle at once.
  8. Look at the edges of each block. Expected: a faint vertical guide runs down each side, content sits inside it, and a small grey rectangle sits centred where each guide meets a block's top line. The hero has no rectangles. From 1280px wide, the navbar logo and the version switcher line up with the guides.

Pages to compare

The preview alias builds apps/offlinedocs, so it has no copy of this page.

What to check Production Preview
Docs home today versus the prototype https://coder.com/docs/ None; use the local /home-prototype/ from QA

Testing

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. A countPages test 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 with next-env.d.ts left out, as in CI. The first push failed CI's typecheck because only that generated, gitignored file declared the SVG imports; image-types.d.ts now 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 clean public/, 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 terminal schema 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.

The prototype's first screen at 1440px in dark mode: square search bars, the CLI walkthrough window, and the header on the guides

The footer at 1440px in dark mode while the pointer pushes the dotted wordmark's dots aside, with registration marks on the footer's top line

Upstream

No new issue needed. With the phone menu open, axe reports one aria-hidden-focus violation from the focus proxy of Radix's NavigationMenu inside HomeLayout'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

  • Option B.
  • Fonts: safe to use.
  • Theme: follow the reader's system setting (Nick's own default is dark).
    No change to the docs theme.
  • Heading tracking: show both coder.com's values and the docs' current values; default to coder.com's.
  • Icons: Phosphor for generic glyphs.
    Brand logos stay as the repo's own SVG files.
  • Logo licensing: unclear, so it is an open question.
  • Push the mockup branch and open a draft docs-engine PR.
  • Repurpose #32714 for B.

What was built

docs-engine, prototype route /home-prototype/:

  1. Content comes from a JSON file in the format coder/coder ships as docs/home.json.
    • The schema is in 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.
    • The loader reads $DOCS_ROOT/home.json when the build is in single-version mode and the file exists, and falls back to a committed fixture with the same content otherwise.
    • Links name pages by route.
      Titles come from the synced pages unless the file overrides them, so the file cannot drift from the page titles.
    • Section cards come from the sidebar's top-level sections, with an exclude list, and use the sidebar's own labels.
    • Validation: internal routes only, except a host allowlist (coder.com, github.com, discord.gg, discord.com); every route must resolve to a page in the version; every #fragment must be a heading on that page; icons and logos resolve through static allowlists.
    • A link that fails to resolve is left out and listed in the prototype bar, instead of rendering a dead link.
  2. Phosphor icons through a static name-to-component map (@phosphor-icons/react/ssr, pinned at 2.1.10).
  3. Navigation without a sidebar: section links, search, the version switcher, display settings, and social links, on Fumadocs HomeLayout and its stock mobile menu.
    Social links move into the menu so the navbar fits at 1024px.
  4. A prototype bar with a heading tracking toggle (coder.com, or the docs pages' current values), set as a data attribute so it works in a static export; ?tracking=docs presets it.
    The bar also shows the content source and any link issues.
  5. Isolation: noindex, not in the sitemap or search index, and the route is in RESERVED_ROUTES.
    The route files end in .prototype.tsx, and next.config.mjs adds 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.
  6. The page is in the CI axe pass, desktop and phone.
    In More contrast its secondary text takes the theme's 7:1 muted and faint tokens instead of coder.com's AA values.
  7. Mockup A and its data were removed; they remain in the branch's first commit.
  8. The docs-engine PR preview builds apps/offlinedocs, which has no such route, so the page can only be seen on a local or fixture build of apps/docs.
  9. Search bars: the header and hero search triggers both use 4px corners, coder.com's --radius-control, instead of HomeLayout's fully round pill.
  10. Hero window: a CLI walkthrough from coder login to coder ssh replaces 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.
  11. Precision grid: vertical guides on the frame edges of every block, with coder.com's 5 by 7px Blink registration marks where they cross each block's top hairline.
    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-width token and the gutter as its padding.
  12. Footer dot mark: a port of coder.com's FooterDotMark (grid5 pattern), a canvas over a CSS mask fallback, decorative and aria-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 prefersReducedMotion and onMotionPreferenceChange, 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:

  • Rebased onto main.
  • Adds docs/home.json, formatted with Biome.
  • docs/README.md keeps 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.
  • No private repository details, screenshots, or preview URLs in the public PR.

Content choices

  • The integrations wall shows OpenShift with 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.
  • The Kubernetes mark is site/static/icon/k8s.svg.
  • Popular pages: Connect over SSH, Docker in workspaces, Reset a password, OIDC sign-in, TLS and reverse proxies.
  • No Agent Firewall references on the page.
    The AI door links Coder Agents getting started in its place, and a new sections.descriptions override 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.
  • Hero window steps: 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

  • Changing the catch-all route or DocsShell so the landing renders at /.
  • Syncing home.json through scripts/sync-docs.mjs for multi-version builds.
  • Changing heading tracking across the docs theme.
  • Switching the sidebar's manifest icons to Phosphor.

The open questions are listed under Design above.

Verification

  • docs-engine: tsc, oxlint, oxfmt, the pre-commit hook, unit tests, the fixture build and its first-load, CSP, parity, and playground checks, the single-version publish e2e, the CI axe pass and keyboard check, rendered-link check against the slug manifest, overflow at 390/768/1024/1440, logo contrast in both themes, and keyboard focus.
    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 typecheck in apps/docs resyncs the fixture corpus through pretypecheck, so it is not run beside a dev server on real content; pnpm exec tsc -p tsconfig.json --noEmit is.
  • coder/coder: make lint/emdash lint/docs-manifest lint/markdown, and Biome on docs/home.json.
  • Cross-platform: the parser strips a byte order mark, and JSON treats CRLF as whitespace; a test covers a Windows-saved file with both.
    The loader uses path.join, and the page count joins path segments with / so it matches on Windows.

🤖 Built with AI assistance.

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
@linear-code

linear-code Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
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 docs/README.md) and is being repurposed for this redesign.

Inputs

  • Audience: the page serves all users, so the first screen offers a path for each audience rather than favoring one.
  • Design system: the new coder.com marketing design system, which is live today: coder/coder.com-new, packages/ui/styles/tokens.css. The docs theme already matches its colors, radii, and typefaces (coder/docs-engine#375, feat(docs-theme): match coder.com's heading weight and corner radii #376, feat(docs-theme): use coder.com's typefaces in the public docs #378). Heading tracking and the mono font weight still differ.
  • Data: with no page-view data available (DOCS-264), the popular tasks follow the top Algolia docs searches over the 30 days to Nov 18: ssh, docker, password, proxy, auth, certificate, config, code-server, git, mcp, port, github, oidc, agents, templates.
  • Design choices: no carousel. A static, labelled logo wall keeps the recognition value of icons with every option visible, and avoids WCAG 2.2.2 (Pause, Stop, Hide).

Options being mocked up

  • A, inside the docs layout: keeps the sidebar, built only from blocks Markdown can express (Fumadocs Cards and Tabs from the existing <div class="cards"> and <div class="tabs"> syntax), plus two small additions to the cards syntax: card icons and compact logo and link tiles.
  • B, standalone landing page: Fumadocs HomeLayout with no sidebar: a hero with search and popular topics, a door for each audience, a logo wall, and section cards, in coder.com's design language.

Decisions pending

  • ☐ Option A or B (Nick wants to see both before choosing)
  • ☐ For B: whether docs/README.md is deleted or hidden from the sidebar, and where the content lives (a data file in coder/coder keeps it versioned with the docs)
  • ☐ Third-party logo use in the docs, and the font licence for LayGrotesk and FT System Mono, which the docs already load from coder.com
  • ☐ Where the product overview that fills today's home page moves

Done when

  • ☐ The chosen design ships on the docs engine, styled with coder.com's design system, in light and dark and on a phone
  • ☐ GitHub and the classic offline docs still show a usable home page
  • ☐ Card and link choices are revisited against page-view data once DOCS-264 lands

Review in Linear

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
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
coder-docs Skipped Skipped Dec 2, 2026 8:31pm UTC

Request Review

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
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Docs preview deployment

Rendered 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
nickvigilante marked this pull request as ready for review December 2, 2026 17:37
@nickvigilante
nickvigilante requested a review from a team as a code owner 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
…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

This branch is waiting to be deployed

1 inactive and 1 waiting deployments
docs-preview — cc4c6125 Waiting Dec 2, 2026 by nickvigilante via preview / deploy preview #153
Preview — cc4c6125 Deployed Dec 2, 2026 by vercel[bot]
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.

1 participant