docs: collaboration page uses code-registry snippets + live demo#17
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Polish the CollaborationExtension docs page
Follow-up to #16. Makes the collaboration docs page consistent with the rest of the docs site:
codes.tsxso all collaboration snippets are registered by thegenerate:registryprebuild and rendered with the site'sSimpleCodeBlock(syntax-highlighted, copyable) instead of plain<pre>.DynamicCodeExample(source + live preview tabs), like the other extension pages.pnpm -F web build(prebuildgenerate:registry+next build) passes; the/docs/extensions/CollaborationExtensionroute prerenders.No library code changes — docs/site only.