Skip to content

Conversation

@atinux
Copy link
Member

@atinux atinux commented Dec 10, 2025

This allow to set versions using .docs/app/app.config.ts:

export default defineAppConfig({
  docs: {
    versions: [
      {
        label: 'v2.x',
        active: true
      },
      {
        label: 'v3 (alpha)',
        to: 'https://v3.nitro.build',
      },
    ],
  },
})

Or using .config/docs.yaml:

versions:
  - label: "v2"
    active: true
  - label: "v3 (alpha)"
    to: "https://v3.nitro.build"
CleanShot 2025-12-11 at 00 28 43@2x

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 10, 2025

Deploying undocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1f61b51
Status: ✅  Deploy successful!
Preview URL: https://0314bb24.undocs.pages.dev
Branch Preview URL: https://feat-versions.undocs.pages.dev

View logs

@atinux
Copy link
Member Author

atinux commented Dec 10, 2025

Tested locally on Nitro website:

CleanShot 2025-12-11 at 00 52 29@2x CleanShot 2025-12-11 at 00 52 49@2x

@atinux atinux merged commit 2cf815a into main Dec 10, 2025
5 checks passed
@pi0 pi0 deleted the feat/versions branch December 10, 2025 23:54
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.

3 participants