Skip to content

fix: add docs for building custom plugins#31388

Open
ishita1805 wants to merge 1 commit into
productionfrom
feat/custom-plugins
Open

fix: add docs for building custom plugins#31388
ishita1805 wants to merge 1 commit into
productionfrom
feat/custom-plugins

Conversation

@ishita1805

Copy link
Copy Markdown
Contributor

Summary

This PR updates the APIs around the plugins feature in RealtimeKit and adds guides for creating custom plugins.

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Review

❌ Review failed for commit 8c67041. This is usually a transient error — it will retry on the next push.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/realtime/ @cloudflare/product-owners, @cloudflare/realtime, @cloudflare/RealtimeKit, @roerohan, @ravindra-cloudflare

@ask-bonk ask-bonk Bot added the documentation Documentation edits label Jun 11, 2026

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

This PR adds documentation for building custom plugins in RealtimeKit, including:

  • A new plugins.mdx reference guide under /realtime/realtimekit/core/plugins/
  • A new custom-plugins/ section with an overview page and a build-your-own-plugins.mdx how-to guide
  • Updates to the rtk-plugin-main API reference pages for React, Angular, and Web Components to describe slot projection behavior
  • Updates the meeting.plugins code examples in meeting-object-explained.mdx to use the per-plugin activate()/deactivate() API

Issues to address

1. Duplicate sidebar orders ⚠️

Two new pages use sidebar.order values that conflict with existing pages in the same sidebar group:

  • src/content/docs/realtime/realtimekit/core/plugins.mdx has order: 14, which conflicts with video-effects.mdx (also order: 14) in the same directory.
  • src/content/docs/realtime/realtimekit/custom-plugins/index.mdx has order: 11, which conflicts with faq.mdx (also order: 11) in the parent directory.

Please pick unique order values to avoid non-deterministic sidebar ordering.

2. Missing description frontmatter

The following new pages are missing the recommended description field (used for SEO meta descriptions):

  • src/content/docs/realtime/realtimekit/core/plugins.mdx
  • src/content/docs/realtime/realtimekit/custom-plugins/build-your-own-plugins.mdx
  • src/content/docs/realtime/realtimekit/custom-plugins/index.mdx

3. Missing period in note block

In src/content/docs/realtime/realtimekit/custom-plugins/build-your-own-plugins.mdx (line ~153), the note is missing a trailing period:

:::note
If you use the UI Kit, the plugin components handle activation and rendering for you
:::

Should be:

:::note
If you use the UI Kit, the plugin components handle activation and rendering for you.
:::

Observations

  • Internal links look correct (including the slug-override link to /realtime/realtimekit/broadcast-apis/).
  • Code block languages are properly lowercase (ts, tsx, js, jsx).
  • No unescaped {, }, <, or > characters detected in prose outside code blocks.
  • The API reference updates are consistent across React, Angular, and Web Components.
  • The documentation checklist in the PR body asks about a changelog entry. Consider adding one if this documents a newly shipped feature.

@ask-bonk

ask-bonk Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

I have completed the review of PR #31388 and posted it as a Changes requested review on the pull request.

Labels applied

  • documentation

Summary of changes in the PR

The PR adds documentation for building custom plugins in RealtimeKit, including:

  • A new plugins.mdx reference guide under /realtime/realtimekit/core/plugins/
  • A new custom-plugins/ section with an overview page and a how-to guide for building custom plugins
  • Consistent updates to the rtk-plugin-main API reference pages (React, Angular, Web Components) describing slot projection behavior
  • Updated meeting.plugins code examples in meeting-object-explained.mdx to reflect the per-plugin activate()/deactivate() API

Issues flagged

  1. Duplicate sidebar ordersplugins.mdx (order: 14) conflicts with video-effects.mdx in the same directory, and custom-plugins/index.mdx (order: 11) conflicts with faq.mdx in the parent directory. These need unique values.
  2. Missing description frontmatter — The three new pages lack the recommended SEO description field.
  3. Missing period in note block — A note in build-your-own-plugins.mdx is missing a trailing period.
  4. Changelog consideration — The PR template notes a changelog entry is optional; I suggested considering one if this documents a newly shipped feature.

I also verified that internal links, code block languages, and MDX escaping all look correct.

github run

@github-actions

Copy link
Copy Markdown
Contributor

Preview URL: https://8c67041d.preview.developers.cloudflare.com
Preview Branch URL: https://feat-custom-plugins.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/realtime/realtimekit/custom-plugins/build-your-own-plugins/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/custom-plugins/build-your-own-plugins/
https://developers.cloudflare.com/realtime/realtimekit/core/plugins/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/core/plugins/
https://developers.cloudflare.com/realtime/realtimekit/core/meeting-object-explained/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/core/meeting-object-explained/
https://developers.cloudflare.com/realtime/realtimekit/custom-plugins/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/custom-plugins/
https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/angular/rtk-plugin-main/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/angular/rtk-plugin-main/
https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/core/rtk-plugin-main/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/core/rtk-plugin-main/
https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/react/rtkpluginmain/ https://feat-custom-plugins.preview.developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/react/rtkpluginmain/

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.

3 participants