Skip to content

Commit 09f9b28

Browse files
Update quickstart.mdx
1 parent 1fc471d commit 09f9b28

File tree

1 file changed

+82
-133
lines changed

1 file changed

+82
-133
lines changed

quickstart.mdx

Lines changed: 82 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ title: "Quickstart"
33
description: "Deploy your documentation in minutes"
44
---
55

6-
This quickstart guide shows you how to set up and deploy your documentation site in minutes.
7-
8-
After completing this guide, you will have a live documentation site ready to customize and expand.
6+
Get your documentation site live in under 10 minutes. This guide walks you through setup, editing, and deployment.
97

108
<Info>
11-
12-
**Prerequisites**: Before you begin, [create an account](https://mintlify.com/start) and complete onboarding.
13-
9+
**Prerequisites**: [Create an account](https://mintlify.com/start) and complete onboarding first.
1410
</Info>
1511

16-
## Getting started
12+
## Your site is already live
1713

18-
After you complete the onboarding process, your documentation site automatically deploys to a unique URL with this format:
14+
After onboarding, your documentation automatically deploys to:
1915

2016
```
2117
https://<your-project-name>.mintlify.app
@@ -28,88 +24,61 @@ Find your URL on the Overview page of your [dashboard](https://dashboard.mintlif
2824
<img src="/images/quickstart/mintlify-domain-dark.png" alt="Mintlify Domain" className="hidden dark:block" />
2925
</Frame>
3026

31-
Your site's URL is available immediately. Use this URL for testing and sharing with your team while you are setting up your docs site.
27+
## Connect GitHub
3228

33-
### Install the GitHub App
29+
Set up automatic deployments when you push changes:
3430

35-
Mintlify provides a GitHub App that automates deployment when you push changes to your repository.
36-
37-
Install the GitHub App by following the instructions from the onboarding checklist or your dashboard.
38-
39-
1. Navigate to **Settings** in your Mintlify dashboard.
40-
2. Select **GitHub App** from the sidebar.
41-
3. Select **Install GitHub App**. This opens a new tab to the GitHub App installation page.
42-
4. Select the organization or user account where you want to install the app.
43-
5. Select the repositories that you want to connect.
31+
1. Go to **Settings****GitHub App** in your dashboard
32+
2. Click **Install GitHub App**
33+
3. Select your organization and repositories
34+
4. Authorize your GitHub account in **Settings****My Profile**
4435

4536
<Frame>
4637
<img src="/images/quickstart/github-app-installation-light.png" alt="GitHub App Installation" className="block dark:hidden" />
4738
<img src="/images/quickstart/github-app-installation-dark.png" alt="GitHub App Installation" className="hidden dark:block" />
4839
</Frame>
4940

5041
<Info>
51-
Update the GitHub App permissions if you move your documentation to a different repository.
42+
Organization admins may need to approve the authorization depending on your GitHub settings.
5243
</Info>
5344

54-
### Authorize your GitHub account
45+
## Choose your editing workflow
5546

56-
1. Navigate to **Settings** in your Mintlify dashboard.
57-
2. Select **My Profile** from the sidebar.
58-
3. Select **Authorize GitHub account**. This opens a new tab to the GitHub authorization page.
47+
Pick the workflow that fits your team:
5948

60-
<Info>
61-
An admin for your GitHub organization may need to authorize your account depending on your organization settings.
62-
</Info>
63-
64-
## Editing workflows
65-
66-
Mintlify offers two workflows for creating and maintaining your documentation:
67-
68-
<Card title="Code-based workflow" icon="terminal" horizontal href="#code-based-workflow">
69-
For users who prefer working with existing tools in their local environment. Click to jump to this section.
49+
<CardGroup cols={2}>
50+
<Card title="Code-based" icon="terminal" href="#code-based-editing">
51+
Work locally with your favorite editor and Git workflow
7052
</Card>
71-
72-
<Card title="Web editor workflow" icon="mouse-pointer-2" horizontal href="#web-editor-workflow">
73-
For users who prefer a visual interface in their web browser. Click to jump to this section.
53+
<Card title="Web editor" icon="mouse-pointer-2" href="#web-editor">
54+
Edit directly in your browser with a visual interface
7455
</Card>
56+
</CardGroup>
7557

76-
## Code-based workflow
77-
78-
The code-based workflow integrates with your existing development environment and Git repositories. This workflow is best for technical teams who want to manage documentation alongside code.
58+
## Code-based editing
7959

8060
### Install the CLI
8161

82-
To work locally with your documentation, install the Command Line Interface (CLI), called [mint](https://www.npmjs.com/package/mint), by running this command in your terminal:
62+
Install the Mintlify CLI to work locally:
8363

8464
<CodeGroup>
85-
```bash npm
86-
npm i -g mint
87-
```
65+
```bash npm
66+
npm i -g mint
67+
```
8868

89-
```bash pnpm
90-
pnpm add -g mint
91-
```
69+
```bash pnpm
70+
pnpm add -g mint
71+
```
9272
</CodeGroup>
9373

9474
<Info>
95-
You need Node.js installed on your machine. If you encounter installation issues, check the troubleshooting guide.
75+
Requires Node.js v19+. Having issues? Check the troubleshooting section below.
9676
</Info>
9777

98-
### Edit the documentation
99-
100-
After setting up your environment, you can start editing your documentation files. For example, update the title of the introduction page:
101-
102-
1. Open your repository created during onboarding.
103-
2. Open `index.mdx` and locate the top of the file:
104-
105-
```mdx index.mdx
106-
---
107-
title: "Introduction"
108-
description: "This is the introduction to the documentation"
109-
---
110-
```
78+
### Make your first edit
11179

112-
3. Update the `title` field to `"Hello World"`.
80+
1. Open your repository from onboarding
81+
2. Edit `index.mdx` and change the title:
11382

11483
```mdx index.mdx {2}
11584
---
@@ -118,133 +87,113 @@ description: "This is the introduction to the documentation"
11887
---
11988
```
12089

121-
### Preview the changes
90+
### Preview locally
12291

123-
To preview the changes locally, run the following command:
92+
Run the development server:
12493

12594
```bash
12695
mint dev
12796
```
12897

129-
Your preview will be available at `localhost:3000`.
98+
Your preview opens at `localhost:3000`.
13099

131100
<Frame>
132101
<img src="/images/quickstart/mintlify-dev-light.png" alt="Mintlify Dev" className="block dark:hidden" />
133102
<img src="/images/quickstart/mintlify-dev-dark.png" alt="Mintlify Dev" className="hidden dark:block" />
134103
</Frame>
135104

136-
### Push the changes
105+
### Deploy changes
137106

138-
When you are ready to publish your changes, push them to your repository.
107+
Push your changes to GitHub. Mintlify automatically builds and deploys your updates.
139108

140-
Mintlify automatically detects the changes, builds your documentation, and deploys the updates to your site. Monitor the deployment status in your GitHub repository commit history or the [dashboard](https://dashboard.mintlify.com).
109+
Monitor deployment status in your GitHub commit history or [dashboard](https://dashboard.mintlify.com).
141110

142-
After the deployment completes, your latest update will be available at `<your-project-name>.mintlify.app`.
111+
## Web editor
143112

144-
<Card title="Jump to adding a custom domain" icon="arrow-down" href="#adding-a-custom-domain" horizontal>
145-
Optionally, skip the web editor workflow and jump to adding a custom domain.
146-
</Card>
147-
148-
## Web editor workflow
149-
150-
The web editor workflow provides a what-you-see-is-what-you-get (WYSIWYG) interface for creating and editing documentation. This workflow is best for people who want to work in their web browser without additional local development tools.
113+
### Access the editor
151114

152-
### Access the web editor
153-
154-
1. Log in to your [dashboard](https://dashboard.mintlify.com).
155-
2. Select **Editor** on the left sidebar.
156-
157-
<Info>
158-
If you have not installed the GitHub App, you will be prompted to install the app when you open the web editor.
159-
</Info>
115+
1. Go to your [dashboard](https://dashboard.mintlify.com)
116+
2. Click **Editor** in the sidebar
160117

161118
<Frame>
162-
<img alt="The Mintlify web editor in the visual editor mode" src="/images/quickstart/web-editor-light.png" className="block dark:hidden" />
163-
<img alt="The Mintlify web editor in the visual editor mode" src="/images/quickstart/web-editor-dark.png" className="hidden dark:block" />
119+
<img alt="The Mintlify web editor" src="/images/quickstart/web-editor-light.png" className="block dark:hidden" />
120+
<img alt="The Mintlify web editor" src="/images/quickstart/web-editor-dark.png" className="hidden dark:block" />
164121
</Frame>
165122

166-
### Edit the documentation
167-
168-
In the web editor, you can navigate through your documentation files in the sidebar. Let's update the introduction page:
169-
170-
Find and select `index.mdx` in the file explorer.
123+
### Make your first edit
171124

172-
Then, in the editor, update the title field to "Hello World".
125+
1. Select `index.mdx` in the file explorer
126+
2. Change the title to "Hello World"
173127

174128
<Frame>
175129
<img alt="Editing in Web Editor" src="/images/quickstart/web-editor-editing-light.png" className="block dark:hidden" />
176130
<img alt="Editing in Web Editor" src="/images/quickstart/web-editor-editing-dark.png" className="hidden dark:block" />
177131
</Frame>
178132

179133
<Tip>
180-
The editor provides a rich set of formatting tools and components. Type <kbd>/</kbd> in the editor to open the command menu and access these tools.
134+
Type <kbd>/</kbd> to open the command menu and access formatting tools and components.
181135
</Tip>
182136

183-
### Publish your changes
137+
### Publish changes
184138

185-
When you're satisfied with your edits, select the **Publish** button in the top-right corner. Your changes are immediately deployed to your documentation site.
139+
Click **Publish** in the top-right corner. Your changes deploy immediately.
186140

187141
<Tip>
188-
Use branches to preview and review changes through pull requests before deploying to your live site.
142+
Use branches to preview changes through pull requests before going live.
189143
</Tip>
190144

191-
For more details about using the web editor, including using branches and pull requests to collaborate and preview changes, see our [web editor documentation](/editor).
145+
## Add a custom domain
192146

193-
## Adding a custom domain
147+
Replace your `.mintlify.app` subdomain with your own domain:
194148

195-
While your `<your-project-name>.mintlify.app` subdomain works well for testing and development, most teams prefer using a custom domain for production documentation.
149+
1. Go to [Domain Setup](https://dashboard.mintlify.com/settings/deployment/custom-domain) in your dashboard
150+
2. Enter your domain (e.g., `docs.yourcompany.com`)
151+
3. Add this DNS record with your domain provider:
196152

197-
To add a custom domain, navigate to the [Domain Setup](https://dashboard.mintlify.com/settings/deployment/custom-domain) page in your dashboard.
153+
<Table>
154+
| Record Type | Name | Value | TTL |
155+
|-------------|------|-------|-----|
156+
| CNAME | docs | cname.mintlify.app | 3600 |
157+
</Table>
198158

199159
<Frame>
200160
<img src="/images/quickstart/custom-domain-light.png" alt="Custom Domain" className="block dark:hidden" />
201161
<img src="/images/quickstart/custom-domain-dark.png" alt="Custom Domain" className="hidden dark:block" />
202162
</Frame>
203163

204-
Enter your domain (for example, `docs.yourcompany.com`) and follow the provided instructions to configure DNS settings with your domain provider.
205-
206-
<Table>
207-
| Record Type | Name | Value | TTL |
208-
|-------------|------|-------|-----|
209-
| CNAME | docs (or subdomain) | cname.mintlify.app | 3600 |
210-
</Table>
211-
212164
<Info>
213-
DNS changes can take up to 48 hours to propagate, though changes often complete much sooner.
165+
DNS changes can take up to 48 hours to propagate.
214166
</Info>
215167

216168
## Next steps
217169

218-
Congratulations! You have successfully deployed your documentation site with Mintlify. Here are suggested next steps to enhance your documentation:
170+
Your documentation site is live! Here's what to do next:
219171

220-
<Card title="Configure your global settings" icon="settings" href="settings" horizontal>
221-
Configure site-wide styling, navigation, integrations, and more with the `docs.json` file.
172+
<CardGroup cols={2}>
173+
<Card title="Configure settings" icon="settings" href="settings">
174+
Customize styling, navigation, and integrations
222175
</Card>
223-
<Card title="Customize your theme" icon="paintbrush" href="themes" horizontal>
224-
Learn how to customize colors, fonts, and the overall appearance of your documentation site.
176+
<Card title="Customize theme" icon="paintbrush" href="themes">
177+
Update colors, fonts, and appearance
225178
</Card>
226-
<Card title="Organize navigation" icon="map" href="navigation" horizontal>
227-
Structure your documentation with intuitive navigation to help users find what they need.
179+
<Card title="Organize navigation" icon="map" href="navigation">
180+
Structure your content for easy discovery
228181
</Card>
229-
<Card title="Add interactive components" icon="puzzle" href="/components/accordions" horizontal>
230-
Enhance your documentation with interactive components like accordions, tabs, and code samples.
231-
</Card>
232-
<Card title="Set up API references" icon="code" href="/api-playground/overview" horizontal>
233-
Create interactive API references with OpenAPI and AsyncAPI specifications.
182+
<Card title="Add components" icon="puzzle" href="/components/accordions">
183+
Use interactive elements like tabs and accordions
234184
</Card>
185+
</CardGroup>
235186

236187
## Troubleshooting
237188

238-
If you encounter issues during the setup process, check these common troubleshooting solutions:
239-
240189
<AccordionGroup>
241-
<Accordion title="Local preview not working">
242-
Make sure you have Node.js v19+ installed and that you run the `mint dev` command from the directory containing your `docs.json` file.
243-
</Accordion>
244-
<Accordion title="Changes not reflecting on live site">
245-
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.
246-
</Accordion>
247-
<Accordion title="Custom domain not connecting">
248-
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.
249-
</Accordion>
250-
</AccordionGroup>
190+
<Accordion title="Local preview not working">
191+
Ensure you have Node.js v19+ installed and run `mint dev` from the directory containing your `docs.json` file.
192+
</Accordion>
193+
<Accordion title="Changes not appearing on live site">
194+
Deployment takes a few minutes. Check GitHub Actions or dashboard deployment logs for build errors.
195+
</Accordion>
196+
<Accordion title="Custom domain not connecting">
197+
Verify DNS records are correct and allow time for propagation. Use [DNSChecker](https://dnschecker.org) to verify your CNAME record.
198+
</Accordion>
199+
</AccordionGroup>

0 commit comments

Comments
 (0)