Skip to content

Prototype: unified email SDK docs (TS/Python language toggle)#144

Draft
stewartjarod wants to merge 1 commit into
mainfrom
prototype/email-docs-language-tabs
Draft

Prototype: unified email SDK docs (TS/Python language toggle)#144
stewartjarod wants to merge 1 commit into
mainfrom
prototype/email-docs-language-tabs

Conversation

@stewartjarod

Copy link
Copy Markdown
Contributor

Draft / prototype — not for merge. Evaluating the Stripe-style docs model against our current separate-page-per-SDK approach.

What this shows

A single email SDK docs page at /docs/email-sdk-unified with a global TypeScript / Python toggle that switches every code sample — and the install command — at once. The choice is remembered in localStorage, so it persists across visits (and would across pages).

  • Reuses existing CodeBlock (controlled mode) + Snippet components — no new primitives
  • Idiomatic samples per language for install, quick start, sending, attachments, templates, suppression, errors
  • Not linked in nav; noindex

Why

We now have two SDKs (TS + Python) and more coming. The separate-page model duplicates prose per language and grows combinatorially. This is the pattern Stripe/Twilio/Supabase use to keep one source of truth for concepts with per-language code.

To evaluate

Open the Vercel preview → /docs/email-sdk-unified, flip the toggle, refresh to confirm persistence. Compare against the shipped separate pages (/docs/sdk-reference, /docs/python-sdk-reference).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TfF3tkuz2tWJkT543cdYbJ

Explore the Stripe-style model — one docs page, a global language switcher that
swaps every code sample (and the install command) at once, remembered in
localStorage. Not linked in nav; noindex. For evaluation vs the separate-page
approach.

- /docs/email-sdk-unified: controlled CodeBlock driven by page-level lang state
- Idiomatic TS and Python samples for install, send, attachments, templates,
  suppression, errors
- Reuses existing CodeBlock/Snippet components — no new primitives

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TfF3tkuz2tWJkT543cdYbJ
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
wraps-website Ready Ready Preview, Comment Jul 13, 2026 9:03pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
wraps-web Skipped Skipped Jul 13, 2026 9:03pm

Request Review

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