Skip to content

Commit defa8ba

Browse files
Documentation edits made through Mintlify web editor
1 parent 9f9e9aa commit defa8ba

File tree

7 files changed

+127
-128
lines changed

7 files changed

+127
-128
lines changed

api-playground/troubleshooting.mdx

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ description: "Common issues with API References"
44
icon: "triangle-exclamation"
55
---
66

7-
API pages are complicated. As a result, there are a lot of things that can go wrong.
8-
Here's a list of common issues we've seen customers run into:
7+
API pages can be complex, and several common issues may arise. Here's a list of problems we frequently see and how to resolve them:
98

109
<AccordionGroup>
1110
<Accordion title="All of my OpenAPI pages are completely blank">
12-
In this scenario, it's likely that either Mintlify cannot find your OpenAPI document,
11+
When all OpenAPI pages are blank, this typically means either Mintlify cannot find your OpenAPI document,
1312
or your OpenAPI document is invalid.
1413

15-
Running `mintlify dev` locally should reveal some of these issues.
14+
Running `mintlify dev` locally will reveal most of these issues.
1615

17-
To verify your OpenAPI document will pass validation:
16+
To verify your OpenAPI document's validity:
1817

1918
1. Visit [this validator](https://apitools.dev/swagger-parser/online/)
2019
2. Switch to the "Validate text" tab
2120
3. Paste in your OpenAPI document
2221
4. Click "Validate it!"
2322

2423
If the text box that appears below has a green border, your document has passed validation.
25-
This is the exact validation package Mintlify uses to validate OpenAPI documents, so if your document
26-
passes validation here, there's a great chance the problem is elsewhere.
24+
This is the same validation package Mintlify uses to validate OpenAPI documents, so if your document
25+
passes validation here, the issue likely lies elsewhere.
2726

2827
Additionally, Mintlify does not support OpenAPI 2.0. If your document uses this version of the specification,
29-
you could encounter this issue. You can convert your document at [editor.swagger.io](https://editor.swagger.io/) (under Edit > Convert to OpenAPI 3):
28+
you will encounter this issue. You can convert your document at [editor.swagger.io](https://editor.swagger.io/)
29+
by selecting Edit > Convert to OpenAPI 3:
3030

3131
<Frame>
3232
<img src="/images/convert-oas-3.png" />
@@ -35,10 +35,10 @@ Here's a list of common issues we've seen customers run into:
3535
</Accordion>
3636

3737
<Accordion title="One of my OpenAPI pages is completely blank">
38-
This is usually caused by a misspelled `openapi` field in the page metadata. Make sure
39-
the HTTP method and path match the HTTP method and path in the OpenAPI document exactly.
38+
This issue usually stems from a mismatched `openapi` field in the page metadata. Ensure
39+
the HTTP method and path exactly match those in your OpenAPI document.
4040

41-
Here's an example of how things might go wrong:
41+
Here's an example of a common mismatch:
4242

4343
```md get-user.mdx
4444
---
@@ -52,12 +52,12 @@ paths:
5252
get: ...
5353
```
5454
55-
Notice that the path in the `openapi` field has a trailing slash, whereas the path in the OpenAPI
55+
Notice that the path in the `openapi` field has a trailing slash, while the path in the OpenAPI
5656
document does not.
5757

58-
Another common issue is a misspelled filename. If you are specifying a particular OpenAPI document
59-
in the `openapi` field, ensure the filename is correct. For example, if you have two OpenAPI
60-
documents `openapi/v1.json` and `openapi/v2.json`, your metadata might look like this:
58+
Another common issue is referencing the wrong OpenAPI file. When specifying a particular OpenAPI document
59+
in the `openapi` field, verify the filename is correct. For example, if you have two OpenAPI
60+
documents `openapi/v1.json` and `openapi/v2.json`, your metadata should look like this:
6161

6262
```md api-reference/v1/users/get-user.mdx
6363
---
@@ -68,17 +68,16 @@ openapi: "v1 GET /users/{id}"
6868
</Accordion>
6969

7070
<Accordion title="Requests from the API Playground don't work">
71-
If you have a custom domain configured, this could be an issue with your reverse proxy. By
72-
default, requests made via the API Playground start with a `POST` request to the
73-
`/api/request` path on the docs site. If your reverse proxy is configured to only allow `GET`
74-
requests, then all of these requests will fail. To fix this, configure your reverse proxy to
75-
allow `POST` requests to the `/api/request` path.
76-
77-
Alternatively, if your reverse proxy prevents you from accepting `POST` requests, you can configure
78-
Mintlify to send requests directly to your backend with the `api.playground.disableProxy`
79-
setting in the `mint.json`, as described [here](/settings/global#api-configurations). This will
80-
likely require you to configure CORS on your server, as these requests will now come directly
81-
from your users' browsers.
71+
For sites with a custom domain, this may be caused by your reverse proxy configuration. By
72+
default, the API Playground makes `POST` requests to the `/api/request` path on your docs site.
73+
If your reverse proxy only allows `GET` requests, these API Playground requests will fail.
74+
To resolve this, configure your reverse proxy to allow `POST` requests to the `/api/request` path.
75+
76+
If you cannot configure your reverse proxy to accept `POST` requests, you can set Mintlify
77+
to send requests directly to your backend using the `api.playground.disableProxy`
78+
setting in your `mint.json`, as described in the [API Configurations documentation](/settings/global#api-configurations).
79+
Note that this approach requires CORS configuration on your server since requests will come directly
80+
from users' browsers.
8281

8382
</Accordion>
84-
</AccordionGroup>
83+
</AccordionGroup>

mint.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@
6565
"icon": "pen-paintbrush",
6666
"pages": [
6767
"development",
68+
"web-editor",
6869
"web-editor"
6970
]
7071
},
7172
"settings/global",
7273
"settings/navigation",
73-
"migration"
74+
"migration",
75+
"quickstart"
7476
]
7577
},
7678
{
@@ -105,6 +107,7 @@
105107
"api-playground/mdx/authentication"
106108
]
107109
},
110+
"api-playground/troubleshooting",
108111
"api-playground/troubleshooting"
109112
]
110113
},
@@ -164,9 +167,12 @@
164167
"settings/authentication-personalization/personalization-setup/choosing-a-handshake",
165168
"settings/authentication-personalization/personalization-setup/shared-session",
166169
"settings/authentication-personalization/personalization-setup/jwt",
170+
"settings/authentication-personalization/personalization-setup/oauth",
167171
"settings/authentication-personalization/personalization-setup/oauth"
168172
]
169173
},
174+
"settings/authentication-personalization/sending-data",
175+
"settings/authentication-personalization/authentication",
170176
"settings/authentication-personalization/sending-data"
171177
]
172178
},

quickstart.mdx

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ icon: "rocket"
1717

1818
## Getting Started
1919

20-
Welcome! Follow the instructions below to learn how to deploy, update and
20+
Welcome! Follow the instructions below to learn how to deploy, update, and
2121
supercharge your documentation with Mintlify.
2222

2323
### Creating the Repository
2424

2525
Mintlify docs are rendered from MDX files and configurations defined in our
2626
[starter kit](https://github.com/mintlify/starter). We use GitHub to integrate
27-
your docs with your code, and make source control effortless. Onboard through the [dashboard](https://dashboard.mintlify.com) or clone our [starter kit](https://github.com/mintlify/starter) to get started.
27+
your docs with your code and make source control effortless. Onboard through the [dashboard](https://dashboard.mintlify.com) or clone our [starter kit](https://github.com/mintlify/starter) to get started.
2828

2929
<AccordionGroup>
3030

31-
<Accordion icon="message-bot" title="Install the GitHub app">
31+
<Accordion icon="message-bot" title="Install the GitHub App">
3232

33-
Install our GitHub app to ensure that your updates are automatically deployed when you push changes. You can find the installation link in the [dashboard](https://dashboard.mintlify.com/settings), on the Settings page. Upon successful installation, a check mark will appear next to the commit hash of the repository.
33+
Install our GitHub App to ensure that your updates are automatically deployed when you push changes. You can find the installation link in the [dashboard](https://dashboard.mintlify.com/settings), on the Settings page. Upon successful installation, a check mark will appear next to the commit hash of the repository.
3434

3535
<Frame>
3636
![GitHub Bot Verification](https://mintlify.s3-us-west-1.amazonaws.com/mintlify/images/github-bot-verification.png)
@@ -40,9 +40,9 @@ your docs with your code, and make source control effortless. Onboard through th
4040

4141
<Accordion icon="code-branch" title="Monorepo Setup">
4242
If you want your docs to live alongside your code as a monorepo setup, you
43-
can: 1. Move your docs content to your monorepo. 2. Specify the path to your
44-
`mint.json` in the
45-
[dashboard](https://dashboard.mintlify.com/settings/deployment/git-settings)
43+
can:
44+
1. Move your docs content to your monorepo
45+
2. Specify the path to your `mint.json` in the [dashboard](https://dashboard.mintlify.com/settings/deployment/git-settings)
4646
<Frame>
4747
<img
4848
alt="Monorepo setup"
@@ -67,24 +67,24 @@ your docs.
6767
<AccordionGroup>
6868
<Accordion icon="rectangle-terminal" title="Editing locally (recommended for developers)">
6969

70-
1. Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
71-
2. Once git is installed, clone your docs repository using `git clone <your-repo>`. If you haven't set it up yet, now would be a good time to do so with these [SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
70+
1. Install [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
71+
2. Once Git is installed, clone your docs repository using `git clone <your-repo>`. If you haven't set it up yet, now would be a good time to do so with these [SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
7272
3. Use your favorite IDE to open the repository.
7373
4. Install our Mintlify CLI to preview changes with `npm i -g mintlify`.
7474

7575
Learn more about this in our [local development guide](/development).
7676

7777
</Accordion>
7878

79-
<Accordion icon="pen-to-square" title="Editing with the web editor">
79+
<Accordion icon="pen-to-square" title="Editing with the Web Editor">
8080

81-
Learn more about how to use the web editor on our [guide](/web-editor).
81+
Learn more about how to use the Web Editor on our [guide](/web-editor).
8282

8383
</Accordion>
8484

8585
<Accordion icon="palette" title="Customizing to your brand">
8686

87-
Easily customize colors, logos and buttons among other configurations in our `mint.json` file. Start with these basic configurations:
87+
Easily customize colors, logos, and buttons among other configurations in our `mint.json` file. Start with these basic configurations:
8888

8989
```json
9090
"name": "Your Company"
@@ -123,11 +123,10 @@ your docs.
123123

124124
<Accordion icon="rocket" title="Pushing changes">
125125

126-
Once ready, commit and push your changes to update your docs site. Here is a [guide](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository#about-git-push) on how to do that. If the GitHub app is unable to successfully deploy your changes, you can manually update your docs through our [dashboard](https://dashboard.mintlify.com).
126+
Once ready, commit and push your changes to update your docs site. Here is a [guide](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository#about-git-push) on how to do that. If the GitHub App is unable to successfully deploy your changes, you can manually update your docs through our [dashboard](https://dashboard.mintlify.com).
127127

128128
<Frame>
129-
![Manual
130-
Update](https://mintlify.s3-us-west-1.amazonaws.com/mintlify/images/manual-update.png)
129+
![Manual Update](https://mintlify.s3-us-west-1.amazonaws.com/mintlify/images/manual-update.png)
131130
</Frame>
132131

133132
</Accordion>
@@ -142,21 +141,21 @@ your docs.
142141
"openapi": "link-to-your-openapi-file"
143142
```
144143

145-
2. Use our [scraper](/api-playground/openapi/setup#autogenerate-files-recommended) to autogenerate your OpenAPI endpoints files as:
144+
2. Use our [scraper](/api-playground/openapi/setup#autogenerate-files-recommended) to autogenerate your OpenAPI endpoints files:
146145

147146
```bash
148147
npx @mintlify/scraping@latest openapi-file <path-or-url-to-openapi-file>
149148
```
150149

151-
3. Finally, include the generated endpoint MDX files to your `mint.json` under `navigation`.
150+
3. Finally, include the generated endpoint MDX files in your `mint.json` under `navigation`.
152151

153152
For a complete guide on using Mintlify with OpenAPI, check out [this guide](/api-playground/openapi/setup). [This guide](/api-playground/openapi/writing-openapi) explains how to configure your API authentication methods. For manual API references definition, explore [our syntax](/api-playground/overview).
154153

155154
</Accordion>
156155

157156
<Accordion icon="chart-simple" title="Adding analytics">
158157

159-
Our in-house analytics give you insights into page views, search analytics, session recordings and more. Access these on your [dashboard](https://dashboard.mintlify.com/analytics).
158+
Our in-house analytics give you insights into page views, search analytics, session recordings, and more. Access these on your [dashboard](https://dashboard.mintlify.com/analytics).
160159

161160
We also support integrations with a range of analytics providers. You can find the list of providers [here](/integrations/analytics/overview).
162161

@@ -180,7 +179,7 @@ Navigate to your [dashboard settings](https://www.dashboard.mintlify.com/setting
180179

181180
</Accordion>
182181

183-
Congrats! You've set up your Mintlify Docs and it's looking amazing! Need
182+
Congrats! You've set up your Mintlify Docs and they're looking amazing! Need
184183
support or want to give some feedback? You can join our
185184
[community](https://mintlify.com/community) or drop us an email at
186-
185+

settings/authentication-personalization/authentication.mdx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@ title: "Authentication"
33
description: "Guarantee privacy of your docs by authenticating users"
44
---
55

6-
Authentication offers full privacy for all of your
7-
documentation content by requiring users to authenticate before viewing any content, such as:
6+
Authentication offers full privacy for all of your documentation content by requiring users to authenticate before viewing any content, including:
87

98
- Documentation page content
10-
- Images used in documentation pages
9+
- Images used in documentation pages
1110
- Search results
1211
- AI chat interactions
1312

14-
You can authenticate users through handshake methods such as:
13+
You can authenticate users through the following handshake methods:
1514

1615
- [Password](./authentication-setup/password)
17-
- [JWT](./authentication-setup/jwt)
18-
- [OAuth](./authentication-setup/oauth)
19-
- [Mintlify dashboard](./authentication-setup/mintlify)
16+
- [JWT](./authentication-setup/jwt)
17+
- [OAuth 2.0](./authentication-setup/oauth)
18+
- [Mintlify Dashboard](./authentication-setup/mintlify)
2019

21-
Authentication is similar to our [Personalization](./personalization) offering, but with guaranteed privacy. In addition
22-
to securing your documentation content, all features that are available via
23-
Personalization are also available via Authentication.
20+
Authentication is similar to our [Personalization](./personalization) offering but with guaranteed privacy. In addition to securing your documentation content, all features available via Personalization are also available via Authentication.
2421

25-
Check out our docs for more info on [choosing Authentication vs Personalization](./authentication-vs-personalization).
22+
To learn more about choosing between Authentication and Personalization, read our guide on [Authentication vs. Personalization](./authentication-vs-personalization).

0 commit comments

Comments
 (0)