Skip to content

docs(demos+examples): cover advertised entries with missing READMEs (round 2, SD-3217)#3393

Closed
caio-pizzol wants to merge 1 commit into
mainfrom
caio-pizzol/demo-cleanup-round-2
Closed

docs(demos+examples): cover advertised entries with missing READMEs (round 2, SD-3217)#3393
caio-pizzol wants to merge 1 commit into
mainfrom
caio-pizzol/demo-cleanup-round-2

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Second execution PR after SD-3217. Round 1 (#3391) removed 6 legacy demos from the gallery; this PR fills in READMEs for the 10 entries that are advertised in demos/manifest.json or examples/manifest.json but had no documentation in the source tree.

No file moves, no manifest schema changes, no source touched outside the new README files.

Entries covered

Entry Shape
demos/chrome-extension Root README explains the wrapper/extension directory split. Links to the existing nested README at chrome-extension/chrome-extension/.
examples/getting-started/nextjs Next.js App Router starter with SSR-boundary notes.
examples/editor/built-in-ui/comments Built-in comments module setup.
examples/editor/built-in-ui/track-changes Built-in tracked-changes review surface.
examples/editor/built-in-ui/toolbar Default toolbar mounted from the toolbar module.
examples/editor/theming --sd-* token override + runtime theme switcher.
examples/document-engine/diffing Side-by-side DOCX comparison rendered as tracked changes.
examples/ai/redlining Browser-side AI suggestions applied as tracked changes (requires VITE_OPENAI_API_KEY).
examples/document-engine/ai-redlining Headless Node version of the same flow (requires OPENAI_API_KEY).
examples/advanced/headless-toolbar Parent index pointing at the five framework variants (vanilla, react-mui, react-shadcn, svelte-shadcn, vue-vuetify).

README shape

Per Codex's review on round 1, each README is 25-50 lines and follows the same structure:

  • What this teaches (one-line lead + supporting bullets).
  • How to run.
  • When to reach for it.
  • When not, with a pointer to the better-fit alternative.
  • One docs link.
  • AI examples explicitly call out required env vars.

Notable calls

  • demos/chrome-extension: root README written (not sourcePath repointed). The existing nested chrome-extension/chrome-extension/README.md stays as the extension package's own docs; the new root README explains the wrapper layout and links inward. Less manifest churn, more obvious to anyone scanning the directory.
  • examples/advanced/headless-toolbar: one parent README acts as an index for the five variants. Variants are not individually advertised in examples/manifest.json (the entry stays one); per-variant READMEs can land later if reviewers want them. Keeps round 2 bounded and avoids flooding the examples gallery with five near-duplicates of the same primitive.

Verified

Queue position

Round 3 (per SD-3217's execution plan): consolidate demos/nextjs-ssr into examples/getting-started/nextjs now that the latter has a README. Round 4: manifest typing + status. Holds until this PR lands.

…round 2, SD-3217)

Second execution PR after the demos/examples taxonomy audit. Adds
READMEs to 10 manifest entries that were advertised but undocumented
in the source tree. No file moves, no manifest schema changes; this
PR only writes READMEs so the surviving public surface is no longer
misleading.

Each README is 25-50 lines and follows the same shape:

- What this teaches (one sentence + supporting bullets).
- How to run.
- When to reach for it.
- When not (with a pointer to the better-fit alternative).
- One docs link.
- For AI examples, required env vars called out explicitly.

Entries covered:

- demos/chrome-extension: root README explains the wrapper/extension
  directory split and links to the existing nested README at
  chrome-extension/chrome-extension/.
- examples/getting-started/nextjs: Next.js App Router starter with
  SSR-boundary notes.
- examples/editor/built-in-ui/{comments,track-changes,toolbar}: the
  three built-in UI module setups, each with a when-not pointer to
  the custom-UI path.
- examples/editor/theming: --sd-* token override + runtime theme
  switcher.
- examples/document-engine/diffing: side-by-side DOCX comparison
  rendered as tracked changes.
- examples/ai/redlining: browser-side AI suggestions applied as
  tracked changes (requires VITE_OPENAI_API_KEY).
- examples/document-engine/ai-redlining: headless Node version of
  the same flow (requires OPENAI_API_KEY).
- examples/advanced/headless-toolbar: parent index pointing at the
  five framework variants (vanilla, react-mui, react-shadcn,
  svelte-shadcn, vue-vuetify), each a standalone workspace.

Variants under headless-toolbar are not given individual READMEs in
this PR; the parent index documents them. Per-variant READMEs can
land later if reviewers ask.

Validator (bun scripts/validate-examples-demos.ts) passes. Zero
em-dashes in any new file.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 19, 2026 17:56
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 19, 2026

SD-3217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant