Skip to content

Commit 37cb3c8

Browse files
Merge branch 'main' of github.com:mintlify/docs into quickstart_edits
2 parents 2ad1b9d + 9316327 commit 37cb3c8

File tree

100 files changed

+1961
-916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1961
-916
lines changed

.github/workflows/check-links.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check links
2+
3+
on: pull_request
4+
5+
jobs:
6+
check-links:
7+
name: Check links
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: "latest"
15+
- name: Install Mintlify CLI
16+
run: npm i -g mintlify
17+
- name: Run broken link checker
18+
run: mintlify broken-links

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
node_modules
3+
package-lock.json
4+
.idea/
5+
.vscode/

advanced/custom/css.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Fully customize your documentation with custom CSS'
44
---
55

66
<Check>
7-
Custom CSS is available on the [growth plan](https://mintlify.com/pricing).
7+
Custom CSS is available as an add-on to the [pro plan](https://mintlify.com/pricing).
88
</Check>
99

1010
Add any number of CSS files to your repository and the defined class names will be applied and available across all of your MDX files.

advanced/custom/js.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ description: 'Add JavaScript functionality globally'
44
---
55

66
<Check>
7-
Custom JS is available on the [growth plan](https://mintlify.com/pricing).
7+
Custom JS is available as an add-on to the [pro plan](https://mintlify.com/pricing).
88
</Check>
99

1010
Custom JS allows you to add custom executable code globally. It is the equivalent of adding a `<script>` tag with JS code into every page.
1111

12-
## Adding script.js
12+
## Adding Custom JavaScript
1313

14-
For example, you can add the following `script.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
14+
Any `.js` file inside the content directory of your docs will be included in every documentation page. For example, you can add the following `ga.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
1515

1616
```js
1717
window.dataLayer = window.dataLayer || [];

advanced/rest-api/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ functionality to the API overtime. Let us know what else you want to see in
1414
## Authentication
1515

1616
You can generate an API key through
17-
[the dashboard](https://dashboard.mintlify.com/settings/api). The API key is
17+
[the dashboard](https://dashboard.mintlify.com/settings/integrations). The API key is
1818
associated with the entire org and can be used across multiple deployments.
1919

2020
<Frame>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
openapi: "POST /project/update/{projectId}"
3+
hideApiMarker: true
34
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
openapi: "GET /project/update-status/{statusId}"
3+
hideApiMarker: true
34
---

advanced/subpath/cloudflare.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Host documentation at a /docs subpath using Cloudflare Workers"
55

66
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
77

8-
<SubpathGatingSnippet />
8+
<SubpathGatingSnippet platform="Cloudflare" />
99

1010
## Create Cloudflare Worker
1111

@@ -21,7 +21,7 @@ Cloudlfare worker.
2121

2222
Once the worker is created, click `Configure worker`. Navigate to the worker
2323
`Settings > Triggers`. Click on `Add Custom Domain` to add your desired domain
24-
into the list - we reccommend you add both the version with and without `www.`
24+
into the list - we recommend you add both the version with and without `www.`
2525
prepended to the domain.
2626

2727
<Frame>
@@ -77,16 +77,8 @@ async function handleRequest(request) {
7777
// if no action found, play the regular request
7878
return await fetch(request);
7979
}
80-
81-
return await fetch(request);
8280
}
8381
```
8482

8583
Click on `Deploy` and wait for the changes to propagate (it can take up to a few
8684
hours).
87-
88-
## Reach out to Mintlify team
89-
90-
Once completing the Cloudflare setup, the Mintlify team will setup the
91-
subdirectory settings in your deployment. Reach out over
92-
[email](mailto:[email protected]).

advanced/subpath/route53-cloudfront.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Host documentation at a /docs subdirectory using AWS services"
55

66
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
77

8-
<SubpathGatingSnippet />
8+
<SubpathGatingSnippet platform="AWS Services" />
99

1010
## Create Cloudfront Distribution
1111

advanced/subpath/vercel.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "Vercel"
3+
description: "Host documentation at a /docs subpath using Vercel"
4+
---
5+
6+
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
7+
8+
<SubpathGatingSnippet platform="Vercel" />
9+
10+
## vercel.json Configuration
11+
12+
To host your documentation at a custom subpath using Vercel, you need to add the
13+
following configuration to your `vercel.json` file.
14+
15+
```json
16+
{
17+
"rewrites": [
18+
{
19+
"source": "/docs",
20+
"destination": "https://[subdomain].mintlify.dev/docs"
21+
},
22+
{
23+
"source": "/docs/:match*",
24+
"destination": "https://[subdomain].mintlify.dev/docs/:match*"
25+
}
26+
]
27+
}
28+
```
29+
30+
<Note>
31+
For more information, you can also refer to Vercel's offical guide on
32+
rewrites: [Project Configuration:
33+
Rewrites](https://vercel.com/docs/projects/project-configuration#rewrites)
34+
</Note>

0 commit comments

Comments
 (0)