Skip to content

Add docs examples index#113

Draft
spencerc99 wants to merge 4 commits into
mainfrom
codex/docs-example-index
Draft

Add docs examples index#113
spencerc99 wants to merge 4 commits into
mainfrom
codex/docs-example-index

Conversation

@spencerc99
Copy link
Copy Markdown
Owner

Summary

  • Adds a /docs/examples/ Starlight page with the right-side table of contents disabled so the index/specimen layout can use the full docs content width.
  • Adds a typed registry of self-contained docs demos and React examples, excluding route-level experiments.
  • Adds searchable/filterable React UI with live previews for docs-safe demos, static specimen cards for source-only examples, and disabled /play affordances for future named editor recipes.

Screenshots

Screenshots were captured during browser verification and are ready to attach to this PR:

  • Desktop: /private/tmp/playhtml-examples-no-toc.png
  • Mobile: /private/tmp/playhtml-examples-mobile.png
  • Dark mode: /private/tmp/playhtml-examples-dark.png

Note: GitHub CLI can create the PR body but cannot upload local PNGs as rendered GitHub issue attachments. To render these in the PR, drag the files above into this PR description or a PR comment in the browser.

Test Plan

  • cd apps/docs && /Users/spencerchang/.bun/bin/bun run --bun build
  • Browser verification against built site-dist via local static server: search, type filters, row selection, disabled /play button, desktop no-TOC layout, mobile no overflow

Notes

  • Root bun run lint still fails before reaching this docs work due to existing website/ TypeScript errors in components/FeaturesGrid.tsx, components/Permissions.tsx, fridge.tsx, and index.tsx.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 5, 2026

Open in StackBlitz

bun add https://pkg.pr.new/@playhtml/common@113
bun add https://pkg.pr.new/playhtml@113
bun add https://pkg.pr.new/@playhtml/react@113

commit: 66b96b8

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 8, 2026

Deploying playhtml with  Cloudflare Pages  Cloudflare Pages

Latest commit: 66b96b8
Status: ✅  Deploy successful!
Preview URL: https://9f888e44.playhtml.pages.dev
Branch Preview URL: https://codex-docs-example-index.playhtml.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying we-were-online-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 66b96b8
Status: ✅  Deploy successful!
Preview URL: https://bf668afc.we-were-online-website.pages.dev
Branch Preview URL: https://codex-docs-example-index.we-were-online-website.pages.dev

View logs

@spencerc99 spencerc99 changed the title [codex] Add docs examples index Add docs examples index May 11, 2026
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