Skip to content

Commit 7be8373

Browse files
Documentation edits made through Mintlify web editor
1 parent d74d709 commit 7be8373

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

api-playground/openapi/setup.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,19 @@ When using this option, the metadata for the generated pages will have the follo
5757

5858
There are some scenarios in which the default behavior isn't sufficient. If you need more customizability, you can create an MDX page for your OpenAPI operation, and modify it just like any other MDX page.
5959

60-
6160
## Create MDX files for API pages
6261

6362
If you want to customize the page metadata, add additional content, omit certain OpenAPI operations, or reorder OpenAPI pages in your navigation, you'll need an MDX page for each operation. Here is [an example MDX OpenAPI page](https://github.com/elevenlabs/elevenlabs-docs/blob/e5e267c97b8d1e4c21db1dcdb8b005eb1dfed7da/api-reference/speech-to-speech.mdx?plain=1#L2) from [Elevenlabs](https://elevenlabs.io/docs/api-reference/speech-to-speech). 
6463

6564
![](/images/elevenlabs-mdx-autogeneration-example.png)
6665

67-
6866
### Autogenerate files
6967

7068
For large OpenAPI documents, creating one MDX page for each OpenAPI operation can be a lot of work. To make it easier, we created a local OpenAPI page scraper.
7169

7270
Our Mintlify [scraper](https://www.npmjs.com/package/@mintlify/scraping)
7371
autogenerates MDX files for your OpenAPI endpoints. Use the relative path to the
74-
OpenAPI document in your codebase. If you're using a publicly-hosted OpenAPI
75-
document, you can supply the URL in place of a path.
72+
OpenAPI document in your codebase.
7673

7774
```bash
7875
npx @mintlify/scraping@latest openapi-file <path-to-openapi-file>

0 commit comments

Comments
 (0)