-
Notifications
You must be signed in to change notification settings - Fork 430
feat(upgrade): improve generate-guide script for clerk-docs #7454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 204bbe5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughUpdated the guide generation script to support multi-SDK output and MDX-compatible front matter. Added SDK normalization and display-name mapping, new CLI flags (--sdk, --output-dir), deterministic sorting of file lists, and new category labels (behavior-change, deprecation, version) with a safe fallback. Introduced per-SDK guide generation and file-writing helpers, accordion-style rendering for grouped changes, and more robust title sorting and indentation handling. Script now errors when multiple SDKs are requested without an output directory and skips SDKs with no changes. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
- Support generating guides for all SDKs at once with --output-dir - Output MDX format with frontmatter compatible with clerk-docs - Add Accordion component rendering for breaking changes - Add display names for SDKs - Sort changes alphabetically within categories - Add support for additional categories (deprecation, version, behavior-change)
f694f27 to
204bbe5
Compare
Summary
Improves the upgrade guide generation script with better multi-SDK support, expanded category handling, and optimized file output.
Changes
--sdkis omitted--output-dirflag writes files directly to a directory instead of stdout<Accordion>components for better UXbehavior-change,deprecation, andversioncategoriesUsage
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
New Features
--sdkand--output-dirCLI flags to generate guides for multiple SDKsImprovements
✏️ Tip: You can customize this high-level summary in your review settings.