Skip to content

chore(docs): add editor guides and API references#3104

Open
joaopcm wants to merge 7 commits intocanaryfrom
t3code/editor-docs-improvements
Open

chore(docs): add editor guides and API references#3104
joaopcm wants to merge 7 commits intocanaryfrom
t3code/editor-docs-improvements

Conversation

@joaopcm
Copy link
Member

@joaopcm joaopcm commented Mar 23, 2026

Summary

  • Added a full Editor section to the docs navigation with new overview, getting started, feature, advanced, and API reference pages.
  • Documented core editor concepts like EmailNode, EmailMark, composeReactEmail, extensions, theming, and the event bus.
  • Expanded examples for custom extensions, export flows, styling, bubble menus, slash commands, and email-compatible content blocks.
  • Updated workflows and package metadata to support the new docs structure, pinned dependency checks, security audit, and release changes.

Testing

  • Not run (documentation and workflow changes only).
  • Not run: site build or preview verification.
  • Not run: editor docs navigation and page rendering checks.

Summary by cubic

Adds editor guides, split API references, and expanded composeReactEmail docs; improves UI docs with composition examples and simplifies navigation by removing the “Editor” top-level section. Also drops lucide-react from install snippets.

  • New Features

    • Added API reference pages for composeReactEmail, EmailNode, and EmailMark from @react-email/editor/core, covering the serialization pipeline, theming integration, SerializerPlugin, preview text, and HTML/plain text outputs.
    • Split UI docs into dedicated pages for BubbleMenu, LinkBubbleMenu, ButtonBubbleMenu, ImageBubbleMenu, and SlashCommand from @react-email/editor/ui, adding compound composition examples, context hooks, LinkBubbleMenu.Form props with validation callbacks, and SlashCommand custom rendering and commands.
  • Refactors

    • Simplified apps/docs/docs.json: removed the “Editor” anchor, kept “Documentation” as the sole top-level entry, and formatted for Biome.
    • Streamlined the custom extensions guide to focus on .from() wrappers and linked to the new API pages; expanded theming docs with a “How theming works” section on the serialization pipeline and inline style injection.
    • Removed lucide-react from the editor install snippet across npm/yarn/pnpm/bun to avoid an unnecessary dependency.

Written for commit cc720ad. Summary will update on new commits.

- Add dedicated API pages for EmailNode, EmailMark, composeReactEmail, and UI components
- Reorganize editor docs navigation and rename the custom extensions guidance
- Expand theming docs with serialization and theme behavior details
@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2026

⚠️ No Changeset found

Latest commit: cc720ad

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Mar 23, 2026 10:59pm
react-email-demo Ready Ready Preview, Comment Mar 23, 2026 10:59pm

Request Review

@joaopcm joaopcm changed the title Docs: add editor guides and API references chore(docs): add editor guides and API references Mar 23, 2026
@joaopcm joaopcm self-assigned this Mar 23, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 12 files

Confidence score: 4/5

  • This PR is likely safe to merge with minimal risk, since the only reported issue is a documentation example problem rather than a runtime code regression.
  • In apps/docs/editor/api-reference/email-node.mdx, the snippet uses mergeAttributes without importing it, so readers copying the example may hit errors and lose confidence in the docs.
  • Pay close attention to apps/docs/editor/api-reference/email-node.mdx - add the missing mergeAttributes import so the example is runnable as written.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/docs/editor/api-reference/email-node.mdx">

<violation number="1" location="apps/docs/editor/api-reference/email-node.mdx:33">
P2: The example calls `mergeAttributes` but never imports it, so the snippet is not runnable as written.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

- Drop the Editor anchor and all nested editor pages from apps/docs/docs.json
- Keep Documentation as the sole top-level docs navigation entry
- Add compound component examples for BubbleMenu and ButtonBubbleMenu
- Clarify toolbar, selector, and context usage
- Clarify image and link bubble menu subcomponents and context
- Add LinkBubbleMenu form props and custom usage examples
- Document slash command custom rendering and custom commands
- Document the export pipeline, theming, and template flow
- Add SerializerPlugin reference and usage guidance
- Clarify preview text and HTML/plain text output
@joaopcm
Copy link
Member Author

joaopcm commented Mar 23, 2026

Auto-merge enabled (squash) via PR Sentinel.

- Drop `lucide-react` from the editor install snippet
- Keep the package list aligned across npm, yarn, pnpm, and bun
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