Skip to content

feat(docs): revamp docs content for 2026, more framework agnostic, improved Next.js docs - #7193

Merged
Nick-Lucas merged 31 commits into
mainfrom
experiments-ralph-docs
Mar 8, 2026
Merged

Nick-Lucas merged 31 commits into
mainfrom
experiments-ralph-docs

Conversation

@Nick-Lucas

@Nick-Lucas Nick-Lucas commented Mar 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #

🎯 Changes

  • Ralphed a first pass cleaning up the docs, stripping out Next.js from the general sections, and fleshing out the dedicated Next.js docs
  • add separate Next.js pages and app router docs
  • revamp introductory section of docs to be more linear and simple
  • significant revisions for grammar and phrasing
  • Ensure all (v11) code examples are compiled with twoslash

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

Summary by CodeRabbit

  • Documentation
    • Reorganized Next.js docs into App Router vs Pages Router, added Server Actions and setup guides; expanded many docs with richer, runnable, type-aware server/client examples and migration/update guidance.
  • Chores
    • Added permanent redirects for moved docs, removed site announcement banner, updated Prettier handling for docs, and added a gitignore rule for a new top-level directory (.claude/).

@coderabbitai

coderabbitai Bot commented Mar 1, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▢️ Resume reviews
  • βœ… Review completed - (πŸ”„ Check again to review again)

Walkthrough

Large documentation overhaul: reorganizes Next.js App/Pages Router docs, adds App Router setup and Server Actions guides, expands TanStack React Query and client link examples, converts many examples to multi-file twoslash snippets, updates sidebar/redirects, and applies minor config changes (.gitignore, Prettier, Docusaurus, package deps).

Changes

Cohort / File(s) Summary
Docs β€” Next.js App Router
www/docs/client/nextjs/app-router/setup.mdx, www/docs/client/nextjs/app-router/server-actions.mdx, www/docs/client/nextjs/introduction.mdx
New App Router setup and Server Actions docs; App Router vs Pages Router narrative and examples added.
Docs β€” Pages Router & redirects
www/docs/client/nextjs/pages-router/..., www/vercel.json
Pages Router pages added/moved; older Next.js pages relocated/removed; permanent redirects added for moved paths.
Docs β€” TanStack React Query
www/docs/client/tanstack-react-query/*, www/blog/2025-02-17-new-tanstack-react-query-integration.mdx
Adds TRPCProvider/useTRPC context patterns, server-components examples, trpc context files, and migration/usage guides with concrete appRouter/AppRouter exports.
Docs β€” Client links & LocalLink
www/docs/client/links/*
Expanded http/httpBatch/httpStream/httpSubscription/ws/logger/retry/split/local link docs with richer multi-file examples; LocalLinkOptions docs show optional onError.
Docs β€” React / Vanilla client
www/docs/client/react/*, www/docs/client/vanilla/*
Many React/Vanilla pages updated to multi-file twoslash examples exposing appRouter/AppRouter, createTRPCContext/trpc client patterns, and createTRPCReact exports.
Docs β€” Server & adapters
www/docs/server/*, www/docs/server/adapters/*
Examples refactored to use CreateHTTPContextOptions in samples, modularized router files, added exported appRouter/AppRouter in examples, updated websockets/subscriptions and context signatures.
Docs β€” Main site & quickstart
www/docs/main/*, www/docs/main/example-apps.mdx, www/docs/main/quickstart.mdx
Intro and quickstart rewritten; Getting Started page removed; example-apps consolidated into a catalog; video added; navigation reorganized.
Docs β€” Blog & examples
www/blog/*.mdx, www/docs/** (multiple)
Converted many code fences to twoslash, added error directives and filename annotations, adjusted sample import paths and example exports across docs and blog posts.
Config / tooling
.gitignore, prettier.config.js, www/docusaurus.config.ts, www/sidebars.ts, www/package.json
Added .claude/ to .gitignore; Prettier override disables embedded formatting for www/docs/**/*.md{,x}; announcementBar removed; sidebar reorganized; dependencies updated (tanstack, ws, fastify, etc.).
Versioned docs & new examples
www/versioned_docs/version-10.x/..., www/docs/test-sub.md, www/docs/client/headers.md, www/docs/client/cors.md
Minor v10 path/link fixes; new test-sub example added; headers/CORS docs include concrete appRouter examples.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related issues

Possibly related PRs

Suggested labels

⏳ close if no activity

Suggested reviewers

  • KATT
  • juliusmarminge

Poem

🐰 Hop, hop β€” the docs grew bright and new,

Routers and providers in tidy view.
Twoslash breadcrumbs trace each example’s way,
Links refreshed, examples ready to play.
I nibble a typo, then bound off to brew.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch experiments-ralph-docs

@railway-app
railway-app Bot temporarily deployed to trpc-sse-and-websockets / trpc-pr-7193 March 1, 2026 09:32 Destroyed
@railway-app

railway-app Bot commented Mar 1, 2026 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-7193 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-sse-chat βœ… Success (View Logs) Web Mar 8, 2026 at 9:13 am
next-prisma-websockets-starter βœ… Success (View Logs) Mar 8, 2026 at 9:10 am

@vercel

vercel Bot commented Mar 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
next-prisma-starter Ready Ready Preview Mar 8, 2026 9:04am
og-image Ready Ready Preview, Comment Mar 8, 2026 9:04am

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Mar 1, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7193

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7193

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7193

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7193

@trpc/tanstack-react-query

npm i https://pkg.pr.new/@trpc/tanstack-react-query@7193

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7193

commit: aaa92c3

@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

This branch was successfully deployed

5 active deployments
Preview – www β€” d45e771b Deployed Mar 8, 2026 by vercel[bot]
Preview – examples-todomvc β€” d45e771b Deployed Mar 8, 2026 by vercel[bot]
Preview – og-image β€” d45e771b Deployed Mar 8, 2026 by vercel[bot]
Preview – next-prisma-starter β€” d45e771b Deployed Mar 8, 2026 by vercel[bot]
Preview – trpc-next-app-dir β€” d45e771b Deployed Mar 8, 2026 by vercel[bot]
trpc-sse-and-websockets / trpc-pr-7193 β€” d45e771b Deployed Mar 8, 2026 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants