Skip to content

docs: one-row jump links, 44px tap targets, TechArticle JSON-LD on /docs - #621

Merged
kalepail merged 2 commits into
mainfrom
docs-jump-techarticle
Dec 5, 2026
Merged

kalepail merged 2 commits into
mainfrom
docs-jump-techarticle

Conversation

@kalepail

@kalepail kalepail commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Small /docs polish from the 2026-12-04 SEO audit. Only src/site.ts changes, plus tests.

  • Jump links: the labels are now "First question" (was "Ask your first question") and "Source families" (was "The five source families"). The gap is 0 16px, down from 8px 18px. At 1440px all six links fit on one row with about 90px to spare; before, "Get help" wrapped onto a second row by itself. At 390px they split 3+3.
  • Tap targets: .docs-jump a min-height goes from 32px to 44px.
  • TechArticle JSON-LD on /docs: it links to the landing page's #website (isPartOf) and #app (about) nodes by @id. It reuses the same </>/& escaping serializer, now pulled out as jsonLdScript(). It has no dates, so nothing in it can go stale.
  • CSP: the /docs CSP is unchanged, with no script-src. A JSON-LD block is inert data. test/auth.test.ts now asserts that the only <script> tag on the page is the ld+json one.

Verification

  • npm run typecheck passes after npm run typegen.
  • npm test: 171 files, 4167 tests pass.
  • npm run test:smoke: 166 tests pass.
  • npm run docs:lint, npm run secrets:scan -- --tree, npm run build and git diff --check all exit 0.
  • Measured the rendered layout at 1440px and 390px with agent-browser (results above).

🤖 Generated with Claude Code

- Shorten two .docs-jump labels ("First question", "Source families") and
  tighten the gap so all six links fit one row at desktop widths; raise the
  link min-height to 44px for touch.
- Emit TechArticle JSON-LD on /docs, linked to the landing page's WebSite
  and SoftwareApplication nodes by @id; share the escaping serializer.
- /docs still ships no executable script (CSP unchanged); the auth test now
  allows only the inert ld+json data block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/auth.test.ts Fixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kalepail
kalepail merged commit e4820dd into main Dec 5, 2026
6 checks passed
@kalepail
kalepail deleted the docs-jump-techarticle branch December 5, 2026 01:17
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.

2 participants