Restore docs example personality and shared data - #370
Conversation
commit: |
Preview evidenceRestores distinctive examples, preserves approved guestbook/list UI, and gives each standalone page a stable shared room. Open preview · Review all evidence · Commit Restored cat and hat exampleThe can-move recipe again uses the original cat and Yankees hat assets, preserved IDs, and a stage that fits the live example. Open captured page · 1440×900 Approved shared guestbook UIThe guestbook keeps its approved prompt-and-entry layout while fitting inside the standardized live-example frame. Open captured page · 390×844 Stable standalone shared roomThe clean standalone URL maps to Room /docs/examples/can-toggle/; two tabs synchronized and the on state survived reload. Open captured page · 1440×900 Published by PR Evidence. Media is temporary and is removed after retention expires. |
Deploying playhtml with
|
| Latest commit: |
921401e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0f2e302a.playhtml.pages.dev |
| Branch Preview URL: | https://cx-restore-example-personali.playhtml.pages.dev |
Deploying we-were-online-website with
|
| Latest commit: |
c53a46b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0c74d1bb.we-were-online-website.pages.dev |
| Branch Preview URL: | https://cx-restore-example-personali.we-were-online-website.pages.dev |
Code reviewNo issues found. Checked for bugs and project-instruction compliance. |



Summary
What happened
PR #328 moved inline demos into canonical recipes so one source could power the docs embed, examples catalogue, detail page, and remix playground. That structure is still useful, but the conversion also replaced several purpose-built examples with generic versions. The cat and hat images became emoji, established element IDs changed, and compact examples inherited catalogue-oriented sizing.
The room changed too. The previous inline React examples used the stable docs-page room.
RecipeExamplegenerated a random room for each iframe, andabout:srcdocreports an empty host, so PlayHTML normalized the iframe namespace underLOCAL. Restoring the old IDs alone would not have restored the old data because the room portion of the data address still differed.The conversion also stopped importing four React demos without removing their implementations or styles.
Implementation
?room=still overrides itdocument.referreronly for hostlessabout:documentsMoveHatCatDemo,CanHoverDemo,DocsCounter, andDocsGuestbook, plus their orphaned CSSValidation
bun run --cwd packages/playhtml test(508 tests)bun build-packagesbun run lintRoom /docs/examples/can-toggle/; a toggle synced between them and persisted after reload without adding a query parameterDocs and starters
The public API and usage patterns do not change, so the starter templates and API documentation do not need updates. The docs examples and their source snippets are updated together through the canonical recipes.
Screenshots
See the PR Evidence comment for the restored cat and hat example, the approved guestbook mobile layout, and the stable standalone room.