Skip to content

Commit a13b5fe

Browse files
Documentation edits made through Mintlify web editor
1 parent c3be25c commit a13b5fe

File tree

2 files changed

+52
-174
lines changed

2 files changed

+52
-174
lines changed

docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"index",
2525
"quickstart",
2626
"installation",
27-
"editor"
27+
"editor",
28+
"quickstart"
2829
]
2930
},
3031
{

quickstart.mdx

Lines changed: 50 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -4,238 +4,115 @@ description: "Deploy your documentation in minutes"
44
icon: "rocket"
55
---
66

7-
This quickstart guide will walk you through the process of setting up and deploying your documentation site in just a few minutes.
8-
9-
By the end of this guide, you'll have a live documentation site that's ready to customize and expand.
7+
This guide will help you set up and deploy your documentation site quickly.
108

119
<Info>
12-
13-
**Prerequisites**: Before you begin, make sure to [create an account](https://mintlify.com/start) and complete onboarding.
14-
10+
**Prerequisites**: [Create a Mintlify account](https://mintlify.com/start) and complete onboarding.
1511
</Info>
1612

17-
## Getting Started
18-
19-
Once you've completed the onboarding process, your documentation site will be automatically deployed to a unique URL with the following format.
13+
## Automatic Deployment
2014

15+
After onboarding, your documentation is automatically deployed to:
2116
```
2217
https://<your-project-name>.mintlify.app
2318
```
2419

25-
You can find your URL from the Overview page of the dashboard.
20+
Find your URL in the Overview page of your dashboard.
2621

27-
<Frame>
28-
<img src="/images/quickstart/mintlify-domain-light.png" alt="Mintlify Domain" className="block dark:hidden" />
29-
<img src="/images/quickstart/mintlify-domain-dark.png" alt="Mintlify Domain" className="hidden dark:block" />
30-
</Frame>
22+
## Choose Your Workflow
3123

32-
This URL is instantly available and will update whenever you make changes to your documentation. It's perfect for testing and sharing with your team during development.
24+
Mintlify offers two ways to manage your documentation:
3325

34-
## Development Workflows
35-
36-
Mintlify offers two different workflows for creating and maintaining your documentation.
37-
38-
<Card title="Code-based workflow" icon="terminal" horizontal href="#code-based-workflow">
39-
For developers who prefer working with their existing tools. Click to jump to section.
40-
</Card>
41-
42-
<Card title="Web editor workflow" icon="mouse-pointer-2" horizontal href="#web-editor-workflow">
43-
For those who prefer a visual interface. Click to jump to section.
44-
</Card>
26+
<CardGroup cols={2}>
27+
<Card title="Code-Based" icon="terminal">
28+
Work with your existing development tools and Git workflows.
29+
</Card>
30+
<Card title="Web Editor" icon="mouse-pointer-2">
31+
Use our visual interface to edit documentation without coding.
32+
</Card>
33+
</CardGroup>
4534

4635
## Code-Based Workflow
4736

48-
The code-based workflow integrates with your existing development environment and Git repositories, making it ideal for technical teams who want to manage documentation alongside their code.
49-
50-
### Install the CLI
51-
52-
To work locally with your documentation, install the Command Line Interface (CLI), called [mint](https://www.npmjs.com/package/mint), by running the following command in your terminal:
37+
### 1. Install CLI
5338

5439
<CodeGroup>
55-
5640
```bash npm
5741
npm install -g mint
5842
```
5943

60-
6144
```bash yarn
6245
yarn global add mint
6346
```
6447

65-
6648
```bash pnpm
6749
pnpm add -g mint
6850
```
69-
7051
</CodeGroup>
7152

7253
<Info>
73-
You need Node.js version 19 or higher installed on your machine. If you encounter installation issues, check the troubleshooting guide.
74-
</Info>
75-
76-
### Install the GitHub App
77-
78-
Mintlify provides a GitHub App that automates the deployment process when you push changes to your repository.
79-
80-
You can install the GitHub App by following the instructions from the onboarding checklist or by navigating to `Settings` > `Organization` > `GitHub`.
81-
82-
Click `Install GitHub App`. Select the repositories you want to connect.
83-
84-
<Frame>
85-
<img src="/images/quickstart/github-app-installation-light.png" alt="GitHub App Installation" className="block dark:hidden" />
86-
<img src="/images/quickstart/github-app-installation-dark.png" alt="GitHub App Installation" className="hidden dark:block" />
87-
</Frame>
88-
89-
<Info>
90-
Remember to update the GitHub App permissions if you move the documentation to a different repository.
54+
Requires Node.js version 19 or higher
9155
</Info>
9256

93-
### Edit the Documentation
94-
95-
Now that your environment is set up, you can start editing your documentation files. As an example, let's update the title of the introduction page:
96-
97-
Open your repository created during onboarding, find the `introduction.mdx` file, and find the top of the file, that should look like this:
98-
99-
```jsx introduction.mdx
100-
---
101-
title: "Introduction"
102-
description: "This is the introduction to the documentation"
103-
---
104-
```
105-
106-
Update the `title` field to `"Hello World"`.
57+
### 2. Install GitHub App
10758

108-
```jsx introduction.mdx {2}
109-
---
110-
title: "Hello World"
111-
description: "This is the introduction to the documentation"
112-
---
113-
```
59+
1. Go to `Settings` > `Organization` > `GitHub`
60+
2. Click `Install GitHub App`
61+
3. Select your repositories
11462

115-
### Preview the Changes
63+
### 3. Edit and Preview
11664

117-
To preview the changes locally, run the following command.
118-
119-
```bash
120-
mint dev
121-
```
122-
123-
Your preview will be available at `localhost:3000`.
124-
125-
<Frame>
126-
<img src="/images/quickstart/mintlify-dev-light.png" alt="Mintlify Dev" className="block dark:hidden" />
127-
<img src="/images/quickstart/mintlify-dev-dark.png" alt="Mintlify Dev" className="hidden dark:block" />
128-
</Frame>
129-
130-
### Push the Changes
131-
132-
When you're ready to publish your changes, simply push the changes to your repository.
133-
134-
Mintlify will automatically detect the changes, build your documentation, and deploy the updates to your site. You can monitor the deployment status in your GitHub repository's commit history or the [dashboard](https://dashboard.mintlify.com).
135-
136-
Once the deployment is complete, your last update will be available at `<your-project-name>.mintlify.app`.
137-
138-
<Card title="Jump to adding a custom domain" icon="arrow-down" href="#adding-a-custom-domain" horizontal>
139-
Optionally skip the web editor workflow and jump to adding a custom domain.
140-
</Card>
65+
1. Edit your MDX files locally
66+
2. Preview changes with `mint dev`
67+
3. Push changes to your repository
68+
4. Changes automatically deploy to your site
14169

14270
## Web Editor Workflow
14371

144-
The web editor workflow provides a WYSIWYG interface for creating and editing documentation without requiring local development tools. It's ideal for non-technical team members or for making quick updates.
145-
146-
### Access the Web Editor
147-
148-
Log in to your Mintlify Dashboard and select your project. Navigate to `Editor` on the left sidebar to open the web editor.
149-
150-
<Info>
151-
If you haven't installed the GitHub App, you will be prompted to do so upon opening the web editor.
152-
</Info>
153-
154-
<Frame>
155-
<img alt="Web Editor" src="/images/quickstart/web-editor-light.png" className="block dark:hidden" />
156-
<img alt="Web Editor" src="/images/quickstart/web-editor-dark.png" className="hidden dark:block" />
157-
</Frame>
158-
159-
### Edit the Documentation
160-
161-
In the web editor, you can navigate your documentation files in the sidebar. Let's update the introduction page.
162-
163-
Find and click on `introduction.mdx` in the file explorer.
164-
165-
Then, in the visual editor, update the title field to "Hello World".
166-
167-
<Frame>
168-
<img alt="Editing in Web Editor" src="/images/quickstart/web-editor-editing-light.png" className="block dark:hidden" />
169-
<img alt="Editing in Web Editor" src="/images/quickstart/web-editor-editing-dark.png" className="hidden dark:block" />
170-
</Frame>
72+
1. Log in to your [Dashboard](https://dashboard.mintlify.com)
73+
2. Navigate to `Editor`
74+
3. Make changes in the visual editor
75+
4. Click `Publish` to deploy
17176

17277
<Tip>
173-
The editor provides a rich set of formatting tools and components. Access them by typing "/" in the editor to open the command menu.
78+
Type "/" in the editor to access formatting tools and components
17479
</Tip>
17580

176-
### Publish Your Changes
177-
178-
When you're satisfied with your edits, click the `Publish` button in the top-right corner.
179-
180-
Your changes will be deployed immediately to your documentation site.
181-
182-
For more details about using the web editor, including advanced features like slash commands and image uploads, see our [Web Editor documentation](/editor).
183-
184-
## Adding a Custom Domain
185-
186-
While your `<your-project-name>.mintlify.app` subdomain works well for testing and development, most teams prefer using a custom domain for production documentation.
81+
## Add Custom Domain
18782

188-
To add a custom domain, go to `Settings` > `Custom Domain` from the dashboard.
189-
190-
<Frame>
191-
<img src="/images/quickstart/custom-domain-light.png" alt="Custom Domain" className="block dark:hidden" />
192-
<img src="/images/quickstart/custom-domain-dark.png" alt="Custom Domain" className="hidden dark:block" />
193-
</Frame>
194-
195-
Enter your domain (e.g., docs.yourcompany.com) and follow the provided instructions to configure DNS settings with your domain provider.
83+
1. Go to `Settings` > `Custom Domain`
84+
2. Enter your domain (e.g., docs.yourcompany.com)
85+
3. Add this DNS record:
19686

19787
<Table>
19888
| Record Type | Name | Value | TTL |
19989
|-------------|------|-------|-----|
20090
| CNAME | docs (or subdomain) | cname.mintlify.app | 3600 |
20191
</Table>
20292

203-
<Info>
204-
DNS changes can take up to 48 hours to propagate, though they often complete much sooner.
205-
</Info>
206-
20793
## Next Steps
20894

209-
Congratulations! You've successfully deployed your documentation site with Mintlify. Here are some suggested next steps to enhance your documentation:
210-
211-
<Card title="Customize Your Theme" icon="paintbrush" href="themes" horizontal>
212-
Learn how to customize colors, fonts, and the overall appearance of your documentation site.
213-
</Card>
214-
<Card title="Organize Navigation" icon="map" href="navigation#overview" horizontal>
215-
Structure your documentation with intuitive navigation to help users find what they need.
216-
</Card>
217-
<Card title="Add Interactive Components" icon="puzzle" href="/components/accordions" horizontal>
218-
Enhance your documentation with interactive components like accordions, tabs, and code samples.
219-
</Card>
220-
<Card title="Set Up API References" icon="code" href="/api-playground/overview" horizontal>
221-
Create interactive API references with OpenAPI and AsyncAPI specifications.
222-
</Card>
95+
<CardGroup cols={2}>
96+
<Card title="Customize Theme" icon="paintbrush" href="themes">
97+
Modify colors, fonts, and appearance
98+
</Card>
99+
<Card title="Add Components" icon="puzzle" href="/components/accordions">
100+
Enhance docs with interactive elements
101+
</Card>
102+
</CardGroup>
223103

224104
## Troubleshooting
225105

226-
If you encounter any issues during the setup process, check our common troubleshooting solutions:
227-
228106
<AccordionGroup>
229-
<Accordion title="Local preview not working">
230-
Make sure you have Node.js v19+ installed and that you're running the `mint dev` command from the directory containing your `docs.json` file.
107+
<Accordion title="Local preview issues">
108+
Verify Node.js v19+ is installed and you're in the correct directory
231109
</Accordion>
232-
<Accordion title="Changes not reflecting on live site">
233-
Deployment can take upwards to a few minutes. Check your GitHub Actions (for code-based workflow) or deployment logs in the Mintlify dashboard to ensure there are no build errors.
110+
<Accordion title="Deployment delays">
111+
Changes can take a few minutes. Check GitHub Actions or dashboard logs
234112
</Accordion>
235-
<Accordion title="Custom domain not connecting">
236-
Verify that your DNS records are set up correctly and allow sufficient time for DNS propagation (up to 48 hours). You can use tools like [DNSChecker](https://dnschecker.org) to verify your CNAME record.
113+
<Accordion title="Domain connection">
114+
Allow up to 48 hours for DNS propagation
237115
</Accordion>
238116
</AccordionGroup>
239117

240-
241-
Need more help? [Contact our Support Team](mailto:[email protected]).
118+
Need help? [Contact Support](mailto:[email protected])

0 commit comments

Comments
 (0)