Skip to content

Commit 1d22c97

Browse files
committed
Merge branch 'main' of https://github.com/mintlify/docs
2 parents d68ff10 + e0c13ad commit 1d22c97

27 files changed

+874
-427
lines changed

advanced/dashboard/roles.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Roles"
3+
description: "Control access to your dashboard with roles."
4+
---
5+
6+
Mintlify provides two dashboard access levels: Editor and Admin.
7+
8+
The following describes actions that are limited to the Admin role:
9+
10+
| | Editor | Admin |
11+
| ----------------------- | :----: | :---: |
12+
| Update user roles |||
13+
| Delete users |||
14+
| Invite admin users |||
15+
| Manage & update billing |||
16+
| Update custom domain |||
17+
| Update Git source |||
18+
| Delete org |||
19+
20+
Other actions on the dashboard are available to both roles.
21+
22+
You can invite as many admins as you want, but we recommend limiting admin
23+
access to users who need it.

api-playground/openapi/setup.mdx

Lines changed: 61 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ description: "Reference OpenAPI endpoints in your docs pages"
88
To describe your endpoints with OpenAPI, make sure you have a valid OpenAPI
99
document in either JSON or YAML format that follows the
1010
[OpenAPI specification](https://swagger.io/specification/). Your document must
11-
follow OpenAPI specification 3.0+.
12-
<Tip>To validate your OpenAPI spec, use our [CLI](https://www.npmjs.com/package/mint) and run this command: <br/>`mint openapi-check <openapiFilenameOrUrl>`</Tip>
11+
follow OpenAPI specification 3.0\+.
12+
<Tip>
13+
To validate your OpenAPI spec, use our [CLI](https://www.npmjs.com/package/mint) and run this command: \
14+
`mint openapi-check <openapiFilenameOrUrl>`
15+
</Tip>
16+
1317

1418
## Auto-populate API pages
1519

1620
The fastest way to get started with OpenAPI is to add an `openapi` field to a tab in the `docs.json`. This field can contain either the path to an OpenAPI document in your docs repo, or the URL of a hosted OpenAPI document. Mintlify will automatically generate a page for each OpenAPI operation and place them in the tab.
1721

18-
1922
**Example with Tabs:**
23+
2024
```json {5}
2125
"navigation": {
2226
"tabs": [
@@ -27,9 +31,13 @@ The fastest way to get started with OpenAPI is to add an `openapi` field to a ta
2731
]
2832
}
2933
```
30-
![](/images/autogeneration-with-tabs.png)
34+
35+
<Note>
36+
The above example is with tabs but you can add an `openapi` property to any [navigation division](/navigation)
37+
</Note>
3138

3239
**Example with Groups:**
40+
3341
```json {8-11}
3442
"navigation": {
3543
"tabs": [
@@ -49,23 +57,26 @@ The fastest way to get started with OpenAPI is to add an `openapi` field to a ta
4957
}
5058
```
5159

52-
<Note>The directory field is optional. If not specified, the files will be placed in the **api-reference** folder of the docs repo.</Note>
60+
<Note>
61+
The directory field is optional. If not specified, the files will be placed in the **api-reference** folder of the docs repo.
62+
</Note>
5363

5464
When using this option, the metadata for the generated pages will have the following default values:
5565

56-
* `title`: The `summary` field from the OpenAPI operation, if present. Otherwise a title generated from the HTTP method and endpoint.
57-
58-
* `description`: The `description` field from the OpenAPI operation, if present.
59-
60-
* `version`: The `version` value from the anchor or tab, if present.
66+
- `title`: The `summary` field from the OpenAPI operation, if present. Otherwise a title generated from the HTTP method and endpoint.
67+
- `description`: The `description` field from the OpenAPI operation, if present.
68+
- `version`: The `version` value from the anchor or tab, if present.
69+
- `deprecated`: The `deprecated` field from the OpenAPI operation, if present. If true, a deprecated label will appear next to the endpoint in the side navigation and next to the title of the endpoint page.
6170

6271
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.
6372

64-
<Tip>If you have some endpoints in your OpenAPI schema that you don't want pages generated for automatically, you can add the [x-hidden](/api-playground/openapi/advanced-features#x-hidden) property</Tip>
73+
<Tip>
74+
If you have some endpoints in your OpenAPI schema that you don't want pages generated for automatically, you can add the [x-hidden](/api-playground/openapi/advanced-features#x-hidden) property
75+
</Tip>
6576

6677
## Create MDX files for API pages
6778

68-
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/mindsdb/mindsdb/blob/main/docs/rest/databases/create-databases.mdx) from [MindsDB](https://docs.mindsdb.com/rest/databases/create-databases).&#x20;
79+
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/mindsdb/mindsdb/blob/main/docs/rest/databases/create-databases.mdx) from [MindsDB](https://docs.mindsdb.com/rest/databases/create-databases).
6980

7081
![](/images/mindsdb.png)
7182

@@ -84,19 +95,28 @@ only one OpenAPI file - it will automatically detect your OpenAPI file.
8495
If you want to reference an external OpenAPI file using this method, provide the file’s URL in the docs.json. See [here](https://mintlify.com/docssettings#param-source-4) for the correct format.
8596

8697
<CodeGroup>
87-
```md Example
88-
---
89-
title: "Get users"
90-
openapi: "/path/to/openapi-1.json GET /users"
91-
---
92-
```
93-
94-
```md Format
95-
---
96-
title: "title of the page"
97-
openapi: openapi-file-path method path
98-
---
99-
```
98+
99+
```md Example
100+
---
101+
title: "Get users"
102+
description: "Returns all plants from the system that the user has access to"
103+
openapi: "/path/to/openapi-1.json GET /users"
104+
deprecated: true
105+
version: "1.0"
106+
---
107+
```
108+
109+
110+
```md Format
111+
---
112+
title: "title of the page"
113+
description: "description of the page"
114+
openapi: openapi-file-path method path
115+
deprecated: boolean (not required)
116+
version: "version-string" (not required)
117+
---
118+
```
119+
100120
</CodeGroup>
101121

102122
<Note>
@@ -116,8 +136,7 @@ Our Mintlify [scraper](https://www.npmjs.com/package/@mintlify/scraping)
116136
autogenerates MDX files for your OpenAPI endpoints.
117137

118138
Each generated page will correspond to an OpenAPI operation under the "paths" section of the OpenAPI schema.
119-
If your OpenAPI document is version 3.1+, the scraper will also generate pages for webhooks under the "webhooks" section of the OpenAPI schema.
120-
139+
If your OpenAPI document is version 3.1\+, the scraper will also generate pages for webhooks under the "webhooks" section of the OpenAPI schema.
121140

122141
```bash
123142
npx @mintlify/scraping@latest openapi-file <path-to-openapi-file>
@@ -141,23 +160,24 @@ reorder and add the files to your navigation manually.
141160
If your OpenAPI document is invalid, the files will not autogenerate.
142161
</Note>
143162

144-
145-
146163
## Create MDX files for OpenAPI schemas
147164

148165
Mintlify also allows you to create individual pages for any OpenAPI schema
149166
defined in an OpenAPI document's `components.schemas` field:
150167

151168
<CodeGroup>
152-
```md Example
153-
---
154-
openapi-schema: OrderItem
155-
---
156-
```
157-
158-
```md Format
159-
---
160-
openapi-schema: "schema-key"
161-
---
162-
```
163-
</CodeGroup>
169+
170+
```md Example
171+
---
172+
openapi-schema: OrderItem
173+
---
174+
```
175+
176+
177+
```md Format
178+
---
179+
openapi-schema: "schema-key"
180+
---
181+
```
182+
183+
</CodeGroup>

changelog.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ description: "New updates and improvements"
44
mode: "center"
55
---
66

7+
<Update label="May 2025">
8+
## API playground stability updates
9+
- Search to find an endpoint
10+
- Indicate a deprecated endpoint with a tag
11+
- Hide auto-generated API pages from navigation
12+
- Upload multipart or form data files
13+
14+
Learn more at [API playground docs.](/api-playground/)
15+
16+
## npm i mint
17+
Can now use `npm i mint@latest -g` to upgrade your CLI.
18+
</Update>
19+
720
<Update label="April 2025">
821
## Web Editor 3.0
922

components/cards.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ description: "Highlight main points or links with customizable icons"
44
icon: 'square-mouse-pointer'
55
---
66

7-
<Card title="Card Title" icon="text" href="/components/card-groups">
7+
<Card title="Card Title" icon="text" href="/components/columns">
88
This is how you use a card with an icon and a link. Clicking on this card
9-
brings you to the Card Group page.
9+
brings you to the Columns page.
1010
</Card>
1111

1212
<RequestExample>
1313
```jsx Card Example
14-
<Card title="Click on me" icon="text" href="/components/card-group">
14+
<Card title="Click on me" icon="text" href="/components/columns">
1515
This is how you use a card with an icon and a link. Clicking on this card
16-
brings you to the Card Group page.
16+
brings you to the Columns page.
1717
</Card>
1818
```
1919

@@ -48,25 +48,25 @@ You can customize the CTA and whether or not to display the arrow on the card. B
4848
<Card
4949
title="Link card"
5050
icon="link"
51-
href="/components/card-groups"
51+
href="/components/columns"
5252
arrow="true"
5353
cta="Click here"
5454
>
5555
This is how you use a card with an icon and a link. Clicking on this card
56-
brings you to the Card Group page.
56+
brings you to the Columns page.
5757
</Card>
5858

5959
<RequestExample>
6060
```jsx Card Example
6161
<Card
6262
title="Link card"
6363
icon="link"
64-
href="/components/card-groups"
64+
href="/components/columns"
6565
arrow="true"
6666
cta="Click here"
6767
>
6868
This is how you use a card with an icon and a link. Clicking on this card
69-
brings you to the Card Group page.
69+
brings you to the Columns page.
7070
</Card>
7171
```
7272
</RequestExample>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ description: 'Show cards side by side in a grid format'
44
icon: 'columns-2'
55
---
66

7-
The `CardGroup` component lets you group multiple `Card` components together. It's most often used to put multiple cards in a grid, by specifying the number of grid columns.
7+
The `Columns` component lets you group multiple `Card` components together. It's most often used to put multiple cards in a grid, by specifying the number of grid columns.
88

9-
<CardGroup cols={2}>
9+
<Columns cols={2}>
1010
<Card title="First Card" icon="panel-left-close">
1111
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
1212
</Card>
1313
<Card title="Second Card" icon="panel-right-close">
1414
Lorem ipsum dolor sit amet, consectetur adipiscing elit
1515
</Card>
16-
</CardGroup>
16+
</Columns>
1717

1818
<RequestExample>
1919

2020
```jsx Card Group Example
21-
<CardGroup cols={2}>
21+
<Columns cols={2}>
2222
<Card title="First Card">
2323
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
2424
</Card>
2525
<Card title="Second Card">
2626
Lorem ipsum dolor sit amet, consectetur adipiscing elit
2727
</Card>
28-
</CardGroup>
28+
</Columns>
2929
```
3030

3131
</RequestExample>

components/fields.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Set parameters for your API or SDK references"
44
icon: 'letter-text'
55
---
66

7-
There are two types of fields: Paramameter Fields and Response Fields.
7+
There are two types of fields: Parameter Fields and Response Fields.
88

99
## Parameter Field
1010

components/panel.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: 'Panel'
3+
description: 'Specify the content of the right side panel'
4+
icon: 'panel-right'
5+
---
6+
7+
You can use the `<Panel>` component to customize the right side panel of a page with any components that you want.
8+
9+
If a page has a `<Panel>` component, any [RequestExample](/components/examples#request-example) and [ResponseExample](/components/examples#response-example) components must be inside `<Panel>`.
10+
11+
The components in a `<Panel>` will replace a page's table of contents.
12+
13+
````md
14+
<Panel>
15+
<Info>Pin info to the side panel. Or add any other component.</Info>
16+
</Panel>
17+
````
18+
19+
<Panel>
20+
<Info>Pin info to the side panel. Or add any other component.</Info>
21+
</Panel>

0 commit comments

Comments
 (0)