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
|`specPath`|`string`|`null`| Designated URL or path to the source of an OpenAPI specification file or directory of multiple OpenAPI specification files. |
303
-
|`ouputDir`|`string`|`null`| Desired output path for generated MDX files. |
304
-
|`proxy`|`string`|`null`|_Optional:_ Proxy URL to prepend to base URL when performing API requests from browser. |
305
-
|`template`|`string`|`null`|_Optional:_ Customize MDX content with a desired template. |
|`specPath`|`string`|`null`| Designated URL or path to the source of an OpenAPI specification file or directory of multiple OpenAPI specification files. |
303
+
|`ouputDir`|`string`|`null`| Desired output path for generated MDX files. |
304
+
|`proxy`|`string`|`null`|_Optional:_ Proxy URL to prepend to base URL when performing API requests from browser. |
305
+
|`template`|`string`|`null`|_Optional:_ Customize MDX content with a desired template. |
|`hideSendButton`|`boolean`|`null`|_Optional:_ If set to `true`, hides the "Send API Request" button in API demo panel. |
308
+
|`showExtensions`|`boolean`|`null`|_Optional:_ If set to `true`, renders operation-level vendor-extensions in description. |
309
+
|`sidebarOptions`|`object`|`null`|_Optional:_ Set of options for sidebar configuration. See below for a list of supported options. |
310
+
|`version`|`string`|`null`|_Optional:_ Version assigned to single or micro-spec API specified in `specPath`. |
311
+
|`label`|`string`|`null`|_Optional:_ Version label used when generating version selector dropdown menu. |
312
+
|`baseUrl`|`string`|`null`|_Optional:_ Version base URL used when generating version selector dropdown menu. |
313
+
|`versions`|`object`|`null`|_Optional:_ Set of options for versioning configuration. See below for a list of supported options. |
314
+
|`markdownGenerators`|`object`|`null`|_Optional:_ Customize MDX content with a set of options for markdown generator configuration. See below for a list of supported options. |
314
315
315
316
### sidebarOptions
316
317
@@ -344,6 +345,22 @@ You may optionally configure a `sidebarOptions`. In doing so, an individual `sid
344
345
All versions will automatically inherit `sidebarOptions` from the parent/base config.
345
346
:::
346
347
348
+
### markdownGenerators
349
+
350
+
`markdownGenerators` can be configured with the following options:
|`createApiPageMD`|`function`|`null`|_Optional:_ Returns a string of the raw markdown body for API pages.<br/><br/>**Function type:**`(pageData: ApiPageMetadata) => string`|
355
+
|`createInfoPageMD`|`function`|`null`|_Optional:_ Returns a string of the raw markdown body for info pages.<br/><br/>**Function type:**`(pageData: InfoPageMetadata) => string`|
356
+
|`createTagPageMD`|`function`|`null`|_Optional:_ Returns a string of the raw markdown body for tag pages.<br/><br/>**Function type:**`(pageData: TagPageMetadata) => string`|
357
+
358
+
:::info NOTE
359
+
If a config option is not provided, its default markdown generator will be used.
360
+
361
+
This config option is intended for advanced users who wish to highly customize the markdown content and layout of generated pages.
362
+
:::
363
+
347
364
## Installing from Template
348
365
349
366
Run the following to bootstrap a Docsaurus v2 site (classic theme) with `docusaurus-openapi-docs`:
@@ -397,4 +414,4 @@ For more insight into why we decided to completely fork see [#47](https://github
397
414
398
415
See [SUPPORT.md](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/main/SUPPORT.md) for our support agreement and guidelines.
399
416
400
-
If you believe you found a bug or have an idea you'd like to suggest you may [report an issue](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/new/choose) or [start a discussion](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/discussions/new/choose).
417
+
If you believe you found a bug or have an idea you'd like to suggest you may [report an issue](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/new/choose) or [start a discussion](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/discussions/new/choose).
0 commit comments