Skip to content

docs: collaboration page uses code-registry snippets + live demo#17

Merged
novincode merged 1 commit into
mainfrom
docs/collaboration-polish
Jun 17, 2026
Merged

docs: collaboration page uses code-registry snippets + live demo#17
novincode merged 1 commit into
mainfrom
docs/collaboration-polish

Conversation

@novincode

Copy link
Copy Markdown
Owner

Polish the CollaborationExtension docs page

Follow-up to #16. Makes the collaboration docs page consistent with the rest of the docs site:

  • Adds codes.tsx so all collaboration snippets are registered by the generate:registry prebuild and rendered with the site's SimpleCodeBlock (syntax-highlighted, copyable) instead of plain <pre>.
  • Renders the live y-webrtc demo through DynamicCodeExample (source + live preview tabs), like the other extension pages.
  • Verified: pnpm -F web build (prebuild generate:registry + next build) passes; the /docs/extensions/CollaborationExtension route prerenders.

No library code changes — docs/site only.

Register the collaboration code samples in codes.tsx (picked up by
generate:registry / prebuild) and render the docs page with the site's
SimpleCodeBlock + DynamicCodeExample components, so snippets are
syntax-highlighted and the y-webrtc demo shows source + live preview
consistently with the other extension pages.
@novincode novincode merged commit e230074 into main Jun 17, 2026
1 check passed
@novincode novincode deleted the docs/collaboration-polish branch June 17, 2026 13:08
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