Skip to content

feat: version aware minimum version badge#2327

Draft
OrbisK wants to merge 12 commits into
nuxt:mainfrom
OrbisK:feat/version-aware-min-badge
Draft

feat: version aware minimum version badge#2327
OrbisK wants to merge 12 commits into
nuxt:mainfrom
OrbisK:feat/version-aware-min-badge

Conversation

@OrbisK

@OrbisK OrbisK commented Jul 19, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

Followup on #2203

📚 Description

This PR aims to only show the minimalVersion Badge, if it matches the current major (of higher - but this should be unlikely), so it reduces noise on e.g. v4 docs by not displaying any v3 related badges that are already included/not relevant.

Possible Followups:

  • I aim to replace all :bage[vX.Y] in the documentation to use :versionBadge to achive the same effect.
  • Show version badge in sidebar if major + minor matches
image

Ibochkarev and others added 11 commits March 11, 2026 22:48
- Add minimalVersion to docs collection schemas (docsv3, docsv4, docsv5)
- Render version badge in docs page header when frontmatter has minimalVersion
- Badge shows vX.Y (e.g. v3.12), info color, with aria-label for a11y

Complements nuxt/nuxt#34485: API docs set minimalVersion in frontmatter;
this repo displays the badge so global inline badges are not needed.
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Robin <robin.kehl@singular-it.de>
Co-authored-by: Robin <robin.kehl@singular-it.de>
Co-authored-by: Robin <robin.kehl@singular-it.de>
Co-authored-by: Robin <robin.kehl@singular-it.de>
Co-authored-by: Robin <robin.kehl@singular-it.de>
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@OrbisK is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@OrbisK OrbisK changed the title Feat/version aware min badge feat: version aware minimu version badge Jul 19, 2026
@OrbisK OrbisK changed the title feat: version aware minimu version badge feat: version aware minimum version badge Jul 19, 2026
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.

4 participants