docs(shared): Fix Typedoc links#8746
Conversation
…exts Unify 12 catch-all replacement patterns in `.typedoc/custom-plugin.mjs` to use the more-encompassing form `(?<![\[\w`#])`?Foo`?(?![\]\w`])` so they match both backticked and bare identifiers. Newly linkifies `ClerkAPIResponseError` (was excluded from backticked form) and `OrganizationPublicMetadata` inside `<code>` HTML tags. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 4b60067 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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.
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@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: |
API Changes Report
Summary
@clerk/astroCurrent version: 3.3.3 Subpath
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThis PR updates TypeDoc plugin regex patterns in Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes broken/sub-optimal documentation links in two places:
@clerk/sharedJSDoc URLs — corrects three external links that surface in IDE tooltips and the generated reference docs:SessionResource.agent:/reference/objects/agent-task→/reference/types/agent-taskSignUpFutureSSOParams.strategy:/reference/types/oauth-strategy→/reference/types/sso#o-auth-strategySignUpFutureSSOParams.strategy:/reference/types/enterprise-sso-strategy→/reference/types/sso#enterprise-sso-strategy.typedoc/custom-plugin.mjscatch-all patterns — unifies 12 link-replacement regexes to the more-encompassing form(?<![\[\w+ "" +#])+ "" +?Foo+ "" +?(?![]\w+ "" +]), so they match identifiers both with and without backticks across more surrounding contexts. Newly linkifies:`ClerkAPIResponseError`when wrapped in backticks (previously excluded by the lookbehind)OrganizationPublicMetadatainside<code>...</code>HTML pipe-wrappersVerified by snapshotting
.typedoc/docsbefore/after intotmp/baseline-docsvstmp/wip-docs— only 3 generated MDX files diff, all expected linkification gains. All 16.typedoc/vitest tests pass.Checklist
pnpm testruns as expected (.typedoc/vitest suite: 16/16 passing; full-repo test run pending CI).pnpm buildruns as expected (verified viapnpm typedoc:generate:skip-buildagainst existing dist artifacts).@clerk/sharedexports.Type of change