@@ -98,20 +98,54 @@ function getRelativeLinkReplacements() {
9898function getCatchAllReplacements ( ) {
9999 return [
100100 {
101- pattern : / \( s e t A c t i v e P a r a m s \) / g,
102- replace : '([setActiveParams ](/docs/reference/javascript/types/set-active-params) )' ,
101+ pattern : / (?< ! [ \[ \w ` ] ) ` A p p e a r a n c e ` \\ < ` T h e m e ` \\ > / g,
102+ replace : '[`Appearance<Theme>` ](/docs/guides/customizing-clerk/appearance-prop/overview )' ,
103103 } ,
104104 {
105- pattern : / ` L o a d e d C l e r k ` / g,
106- replace : '[Clerk ](/docs/reference/javascript/clerk )' ,
105+ pattern : / (?< ! [ \[ \w ` ] ) ` ? B i l l i n g M o n e y A m o u n t ` ? (? ! [ \] \w ` ] ) / g,
106+ replace : '[`BillingMoneyAmount` ](/docs/reference/javascript/types/billing-money-amount )' ,
107107 } ,
108108 {
109109 pattern : / \( C r e a t e O r g a n i z a t i o n P a r a m s \) / g,
110110 replace : '([CreateOrganizationParams](#create-organization-params))' ,
111111 } ,
112112 {
113- pattern : / \| ` S i g n I n R e s o u r c e ` \| / ,
114- replace : '| [SignInResource](/docs/reference/javascript/sign-in) |' ,
113+ pattern : / ` L o a d e d C l e r k ` / g,
114+ replace : '[Clerk](/docs/reference/javascript/clerk)' ,
115+ } ,
116+ {
117+ pattern : / (?< ! [ \[ \w ` ] ) ` ? L o c a l i z a t i o n R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
118+ replace : '[`LocalizationResource`](/docs/guides/customizing-clerk/localization)' ,
119+ } ,
120+ {
121+ // SessionResource appears in plain text, with an array next to it, with backticks, etc.
122+ // e.g. `SessionResource[]`
123+ pattern : / (?< ! [ ` [ \] ] ) \b S e s s i o n R e s o u r c e ( \[ \] ) ? \b (? ! [ \] \) ` ] ) / g,
124+ replace : '[`SessionResource`](/docs/reference/javascript/session)$1' ,
125+ } ,
126+ {
127+ pattern : / (?< ! [ \[ \w ` ] ) ` ? S e s s i o n S t a t u s C l a i m ` ? (? ! [ \] \w ` ] ) / g,
128+ replace : '[`SessionStatusClaim`](/docs/reference/javascript/types/session-status)' ,
129+ } ,
130+ {
131+ pattern : / (?< ! [ ` [ \] ] ) \b S e t A c t i v e P a r a m s \b (? ! [ \] \( ] ) / g,
132+ replace : '[SetActiveParams](/docs/reference/javascript/types/set-active-params)' ,
133+ } ,
134+ {
135+ pattern : / (?< ! [ \[ \w ` ] ) ` ? S i g n I n R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
136+ replace : '[`SignInResource`](/docs/reference/javascript/sign-in)' ,
137+ } ,
138+ {
139+ pattern : / (?< ! [ \[ \w ` ] ) ` ? S i g n e d I n S e s s i o n R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
140+ replace : '[`SignedInSessionResource`](/docs/reference/javascript/session)' ,
141+ } ,
142+ {
143+ pattern : / (?< ! [ \[ \w ` ] ) ` ? S i g n U p R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
144+ replace : '[`SignUpResource`](/docs/reference/javascript/sign-up)' ,
145+ } ,
146+ {
147+ pattern : / (?< ! [ \[ \w ` ] ) ` ? O r g a n i z a t i o n R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
148+ replace : '[`OrganizationResource`](/docs/reference/javascript/organization)' ,
115149 } ,
116150 {
117151 pattern : / ` O r g a n i z a t i o n P r i v a t e M e t a d a t a ` / g,
@@ -142,6 +176,10 @@ function getCatchAllReplacements() {
142176 replace :
143177 '[`OrganizationMembershipPublicMetadata`](/docs/reference/javascript/types/metadata#organization-membership-public-metadata)' ,
144178 } ,
179+ {
180+ pattern : / (?< ! [ \[ \w ` ] ) ` ? U s e r R e s o u r c e ` ? (? ! [ \] \w ` ] ) / g,
181+ replace : '[`UserResource`](/docs/reference/javascript/user)' ,
182+ } ,
145183 {
146184 /**
147185 * By default, `@deprecated` is output with `**Deprecated**`. We want to add a full stop to it.
0 commit comments