chore(content): add a v2 beta banner linking to the v1 docs - #1940
Merged
dinwwwh merged 1 commit intoAug 24, 2026
Conversation
Readers landing anywhere in the docs now see that these are the v2 docs and that v2 is still in beta, with a way over to v1.orpc.dev.
More templates
@orpc/ai-sdk
@orpc/arktype
@orpc/bun
@orpc/client
@orpc/cloudflare
@orpc/contract
@orpc/experimental-effect
@orpc/evlog
@orpc/hibernation
@orpc/json-schema
@orpc/experimental-msw
@orpc/nest
@orpc/next
@orpc/node
@orpc/openapi
@orpc/opentelemetry
@orpc/pinia-colada
@orpc/pino
@orpc/publisher
@orpc/ratelimit
@orpc/server
@orpc/shared
@orpc/swr
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/zod
commit: |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — single commit adding a site-wide dismissible banner to apps/content/blume.config.ts (content + link to https://v1.orpc.dev + dismissible: true), rendering on docs, landing, and blog pages.
I verified the config mechanically rather than trusting it on sight:
- The object form matches Blume's
BannerConfigtype indist/types/core/config-input.d.ts(content,dismissible,link.{href,text}, optionalid), so the schema loader accepts it. - The external link survives
withBase()/prefixBase()untouched (only root-relative routes get the base prefix; the site base is/). - Dismissal works with this site's forked
components/blume/Header.astro, which already carries thedata-blume-banner-dismisshandler and re-measures the mobile drawer offset, and thedata-banner-keyBlume stamps on the bar. - Dismissal is keyed on
banner.id ?? banner.content(content, since noidis set) — the PR body documents this and theidescape hatch if copy edits should not re-show the bar. v1.orpc.devresolves and is live.
This touches no code or tests; it adds user-visible chrome to the live docs site, which is exactly the stated intent.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
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.

Every docs page now opens with a bar saying the reader is on the v2 docs and that v2 is still in beta, with a link across to v1.orpc.dev. Readers who arrive from a search result no longer have to work out which major version they landed on, and v1 users have a visible way back.
The bar is closable, and the choice is remembered per visitor.
Notes
Uses Blume's built-in
banner, so the bar covers docs pages, the landing page, and the blog: the custom pages already passconfig.bannerthrough toPageLayout. The close button works with this site's forked header, which carries the dismiss handler and re-measures the mobile drawer offset afterwards.Dismissal is keyed on the message text, so editing the copy later re-shows the bar to everyone who closed it. Add an
idif that ever becomes unwanted.Testing
Config validated through Blume's own schema loader, which normalizes the banner as expected. eslint and
tsc -p apps/contentreport nothing on the changed file. The docs site was not built or served.