You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,7 +81,6 @@ Other ReDoc specific extensions such as `x-circular-ref`, `x-code-samples` (depr
82
81
| 2.2.3 (legacy) | `2.4.1 - 2.4.3` |
83
82
| 1.7.3 (end-of-support) | `2.0.1 - 2.2.0` |
84
83
85
-
86
84
:::tip
87
85
If you're building a Docusaurus site from scratch, the easiest way to get started is by [installing from template](#bootstrapping-from-template-new-docusaurus-site).
88
86
:::
@@ -207,20 +205,21 @@ The `docusaurus-plugin-openapi-docs` plugin can be configured with the following
207
205
| `specPath` | `string` | `null` | Designated URL or path to the source of an OpenAPI specification file or directory of multiple OpenAPI specification files. |
208
206
| `outputDir` | `string` | `null` | Desired output path for generated MDX and sidebar files. |
209
207
| `proxy` | `string` | `null` | _Optional:_ Proxy URL to prepend to base URL when performing API requests from browser. |
210
-
| `template` | `string` | `null` | _Optional:_ Customize MDX content with a desired template. |
| `createIntroTemplateMD` | `function` | `null` | _Optional:_ Returns a string of the raw markdown body for introduction page.<br/><br/>**Function type:** `() => string` |
258
+
| `createInfoTemplateMD` | `function` | `null` | _Optional:_ Returns a string of the raw markdown body for info pages.<br/><br/>**Function type:** `() => string` |
259
+
| `createTagTemplateMD` | `function` | `null` | _Optional:_ Returns a string of the raw markdown body for tag pages.<br/><br/>**Function type:** `() => string` |
260
+
| `createSchemaTemplateMD` | `function` | `null` | _Optional:_ Returns a string of the raw markdown body for schema pages.<br/><br/>**Function type:** `() => string` |
261
+
262
+
Example:
263
+
264
+
```typescript
265
+
petstore31: {
266
+
specPath: "examples/petstore-3.1.yaml",
267
+
proxy: "https://cors.pan.dev",
268
+
outputDir: "docs/petstore31",
269
+
sidebarOptions: {
270
+
groupPathsBy: "tag",
271
+
categoryLinkSource: "tag",
272
+
},
273
+
downloadUrl: "/petstore-3.1.yaml",
274
+
hideSendButton: false,
275
+
showSchemas: true,
276
+
markdownGenerators: {
277
+
createIntroTemplateMD: myCustomInfroMdGenerator
278
+
}, // customize markdown generator
279
+
} satisfies OpenApiPlugin.Options,
280
+
```
281
+
251
282
### markdownGenerators
252
283
253
284
`markdownGenerators` can be configured with the following options:
0 commit comments