Skip to content

Commit 2e400cb

Browse files
committed
Docs.json updates to docs
1 parent 57fb7ee commit 2e400cb

File tree

5 files changed

+80
-40
lines changed

5 files changed

+80
-40
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview th
1616
npm i -g mintlify
1717
```
1818

19-
Run the following command at the root of your documentation (where mint.json is)
19+
**Note**: Please upgrade to ```docs.json``` before proceeding and delete the legacy ```mint.json``` file.
20+
To upgrade, run the following command at the root of your documentation (where docs.json is)
21+
22+
```
23+
mintlify upgrade
24+
```
25+
26+
Run the following command at the root of your documentation (where docs.json is)
2027

2128
```
2229
mintlify dev
@@ -29,4 +36,4 @@ Install our Github App to auto propagate changes from your repo to your deployme
2936
#### Troubleshooting
3037

3138
- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
32-
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`
39+
- Page loads as a 404 - Make sure you are running in a folder with `docs.json`

development.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: 'Preview changes locally to update your docs'
44
---
55

66
<Info>
7-
**Prerequisite**: Please install Node.js (version 19 or higher) before proceeding.
7+
**Prerequisite**: Please install Node.js (version 19 or higher) before proceeding. <br />
8+
Please upgrade to ```docs.json``` before proceeding and delete the legacy ```mint.json``` file.
89
</Info>
910

1011
Follow these steps to install and run Mintlify on your operating system:
@@ -23,7 +24,7 @@ yarn global add mintlify
2324

2425
</CodeGroup>
2526

26-
**Step 2**: Navigate to the docs directory (where the `mint.json` file is located) and execute the following command:
27+
**Step 2**: Navigate to the docs directory (where the `docs.json` file is located) and execute the following command:
2728

2829
```bash
2930
mintlify dev

essentials/navigation.mdx

+40-19
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 'Navigation'
3-
description: 'The navigation field in mint.json defines the pages that go in the navigation menu'
3+
description: 'The navigation field in docs.json defines the pages that go in the navigation menu'
44
icon: 'map'
55
---
66

77
The navigation menu is the list of links on every website.
88

9-
You will likely update `mint.json` every time you add a new page. Pages do not show up automatically.
9+
You will likely update `docs.json` every time you add a new page. Pages do not show up automatically.
1010

1111
## Navigation syntax
1212

@@ -15,34 +15,48 @@ Our navigation syntax is recursive which means you can make nested navigation gr
1515
<CodeGroup>
1616

1717
```json Regular Navigation
18-
"navigation": [
18+
"navigation": {
19+
"tabs": [
1920
{
20-
"group": "Getting Started",
21-
"pages": ["quickstart"]
21+
"tab": "Docs",
22+
"groups": [
23+
{
24+
"group": "Getting Started",
25+
"pages": ["quickstart"]
26+
}
27+
]
2228
}
23-
]
29+
]
30+
}
2431
```
2532

2633
```json Nested Navigation
27-
"navigation": [
34+
"navigation": {
35+
"tabs": [
2836
{
29-
"group": "Getting Started",
30-
"pages": [
37+
"tab": "Docs",
38+
"groups": [
39+
{
40+
"group": "Getting Started",
41+
"pages": [
3142
"quickstart",
3243
{
33-
"group": "Nested Reference Pages",
34-
"pages": ["nested-reference-page"]
44+
"group": "Nested Reference Pages",
45+
"pages": ["nested-reference-page"]
3546
}
36-
]
47+
]
48+
}
49+
]
3750
}
38-
]
51+
]
52+
}
3953
```
4054

4155
</CodeGroup>
4256

4357
## Folders
4458

45-
Simply put your MDX files in folders and update the paths in `mint.json`.
59+
Simply put your MDX files in folders and update the paths in `docs.json`.
4660

4761
For example, to have a page at `https://yoursite.com/your-folder/your-page` you would make a folder called `your-folder` containing an MDX file called `your-page.mdx`.
4862

@@ -53,14 +67,21 @@ You cannot use `api` for the name of a folder unless you nest it inside another
5367
</Warning>
5468

5569
```json Navigation With Folder
56-
"navigation": [
70+
"navigation": {
71+
"tabs": [
5772
{
58-
"group": "Group Name",
59-
"pages": ["your-folder/your-page"]
73+
"tab": "Docs",
74+
"groups": [
75+
{
76+
"group": "Group Name",
77+
"pages": ["your-folder/your-page"]
78+
}
79+
]
6080
}
61-
]
81+
]
82+
}
6283
```
6384

6485
## Hidden Pages
6586

66-
MDX files not included in `mint.json` will not show up in the sidebar but are accessible through the search bar and by linking directly to them.
87+
MDX files not included in `docs.json` will not show up in the sidebar but are accessible through the search bar and by linking directly to them.

essentials/settings.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: 'Global Settings'
3-
description: 'Mintlify gives you complete control over the look and feel of your documentation using the mint.json file'
3+
description: 'Mintlify gives you complete control over the look and feel of your documentation using the docs.json file'
44
icon: 'gear'
55
---
66

7-
Every Mintlify site needs a `mint.json` file with the core configuration settings. Learn more about the [properties](#properties) below.
7+
Every Mintlify site needs a `docs.json` file with the core configuration settings. Learn more about the [properties](#properties) below.
88

99
## Properties
1010

quickstart.mdx

+26-15
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@ Learn how to update your docs locally and deploy them to the public.
2020
</Accordion>
2121
<Accordion icon="rectangle-terminal" title="Preview changes">
2222
Previewing helps you make sure your changes look as intended. We built a
23-
command line interface to render these changes locally. 1. Install the
23+
command line interface to render these changes locally.
24+
1. Install the
2425
[Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the
2526
documentation changes locally with this command: ``` npm i -g mintlify ```
2627
2. Run the following command at the root of your documentation (where
27-
`mint.json` is): ``` mintlify dev ```
28+
`docs.json` is): ``` mintlify dev ```
29+
<Note>
30+
If you’re currently using the legacy ```mint.json``` configuration file, please update the Mintlify CLI:
31+
32+
33+
```npm i -g mintlify@latest```
34+
And run the new upgrade command in your docs repository:
35+
36+
```mintlify upgrade```
37+
You should now be using the new ```docs.json``` configuration file. Feel free to delete the ```mint.json``` file from your repository.
38+
</Note>
2839
</Accordion>
2940
</AccordionGroup>
3041

@@ -55,32 +66,32 @@ Add content directly in your files with MDX syntax and React components. You can
5566

5667
<CardGroup>
5768

58-
<Card title="Style Your Docs" icon="paintbrush" href="/settings/global">
59-
Add flair to your docs with personalized branding.
69+
<Card title="Add Content With MDX" icon="file" href="/essentials/markdown">
70+
Add content to your docs with MDX syntax.
6071
</Card>
6172

6273
<Card
63-
title="Add API Endpoints"
74+
title="Add Code Blocks"
6475
icon="square-code"
65-
href="/api-playground/configuration"
76+
href="/essentials/code"
6677
>
67-
Implement your OpenAPI spec and enable API user interaction.
78+
Add code directly to your docs with syntax highlighting.
6879
</Card>
6980

7081
<Card
71-
title="Integrate Analytics"
72-
icon="chart-mixed"
73-
href="/analytics/supported-integrations"
82+
title="Add Images"
83+
icon="image"
84+
href="/essentials/images"
7485
>
75-
Draw insights from user interactions with your documentation.
86+
Add images to your docs to make them more engaging.
7687
</Card>
7788

7889
<Card
79-
title="Host on a Custom Domain"
80-
icon="browser"
81-
href="/settings/custom-domain/subdomain"
90+
title="Add Custom Components"
91+
icon="puzzle-piece"
92+
href="/essentials/reusable-snippets"
8293
>
83-
Keep your docs on your own website's subdomain.
94+
Add templates to your docs to make them more reusable.
8495
</Card>
8596

8697
</CardGroup>

0 commit comments

Comments
 (0)