@@ -51,6 +51,8 @@ export default function redocPlugin(
51
51
console . error ( '[REDOCUSAURUS_PLUGIN] Opts Input:' , opts ) ;
52
52
console . error ( '[REDOCUSAURUS_PLUGIN] Options:' , options ) ;
53
53
}
54
+
55
+ const { themeId } = options ;
54
56
return {
55
57
name : 'docusaurus-plugin-redoc' ,
56
58
async loadContent ( ) {
@@ -119,23 +121,25 @@ export default function redocPlugin(
119
121
120
122
const data : SpecProps = {
121
123
url,
124
+ themeId,
122
125
// eslint-disable-next-line @typescript-eslint/no-explicit-any
123
126
spec : content . converted as any ,
124
127
} ;
125
128
setGlobalData ( data ) ;
126
129
127
130
if ( options . route ) {
131
+ const routePath = options . route . startsWith ( '/' )
132
+ ? options . route . slice ( 1 )
133
+ : options . route ;
134
+
128
135
const specProps = await createData (
129
- `redocApiSpecV1-${ options . id || '1' } .json` ,
136
+ `redocApiSpecV1.1 -${ options . id || '1' } .json` ,
130
137
JSON . stringify ( data ) ,
131
138
) ;
132
139
const layoutProps = await createData (
133
140
`redocApiLayoutV1-${ options . id || '1' } .json` ,
134
141
JSON . stringify ( options . layout ) ,
135
142
) ;
136
- const routePath = options . route . startsWith ( '/' )
137
- ? options . route . slice ( 1 )
138
- : options . route ;
139
143
140
144
const modules : Record < keyof ApiDocProps , string > = {
141
145
specProps,
0 commit comments