File tree 3 files changed +270
-188
lines changed 3 files changed +270
-188
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,19 @@ const config = {
233
233
feedOptions : { } ,
234
234
} ,
235
235
] ,
236
+ [
237
+ '@docusaurus/plugin-client-redirects' ,
238
+ {
239
+ createRedirects ( existingPath ) {
240
+ if ( existingPath . includes ( '/sdk/' ) ) {
241
+ // Redirect from /sdk/foo to /quick-start/foo
242
+ return [ existingPath . replace ( '/sdk/' , '/quick-start/' ) ] ;
243
+ }
244
+ // eslint-disable-next-line unicorn/no-useless-undefined
245
+ return undefined ; // Return a falsy value: no redirect created
246
+ } ,
247
+ } ,
248
+ ] ,
236
249
] ,
237
250
themes : [ '@docusaurus/theme-mermaid' ] ,
238
251
} ;
Original file line number Diff line number Diff line change 27
27
"@commitlint/types" : " ^18.0.0" ,
28
28
"@docusaurus/core" : " 3.3.2" ,
29
29
"@docusaurus/module-type-aliases" : " 3.3.2" ,
30
+ "@docusaurus/plugin-client-redirects" : " 3.3.2" ,
30
31
"@docusaurus/preset-classic" : " 3.3.2" ,
31
32
"@docusaurus/theme-classic" : " 3.3.2" ,
32
33
"@docusaurus/theme-common" : " 3.3.2" ,
You can’t perform that action at this time.
0 commit comments