Skip to content

Commit b4d37f6

Browse files
committed
Update quickstart section
1 parent 010c7fa commit b4d37f6

File tree

7 files changed

+217
-129
lines changed

7 files changed

+217
-129
lines changed
409 KB
Loading
581 KB
Loading
311 KB
Loading
325 KB
Loading
797 KB
Loading
1.02 MB
Loading

quickstart.mdx

Lines changed: 217 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -4,150 +4,238 @@ 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.
10+
11+
<Info>
12+
13+
**Prerequisites**: Before you begin, make sure to [create an account](https://mintlify.com/signup) and complete onboarding.
14+
15+
</Info>
16+
717
## Getting Started
818

9-
Welcome\! Follow the instructions below to learn how to deploy, update and
10-
supercharge your documentation with Mintlify.
19+
Once you've completed the onboarding process, your documentation site will be automatically deployed to a unique URL with the following format.
1120

12-
### Creating the Repository
21+
```
22+
https://<your-project-name>.mintlify.app
23+
```
1324

14-
Mintlify docs are rendered from MDX files and configurations defined in our
15-
[starter kit](https://github.com/mintlify/starter). We use GitHub to integrate
16-
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.
25+
You can find your URL from the Overview page of the dashboard.
1726

18-
<AccordionGroup>
19-
<Accordion title="Install the GitHub app">
20-
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.
21-
22-
<Frame>
23-
![GitHub Bot Verification](https://mintlify.s3-us-west-1.amazonaws.com/mintlify/images/github-bot-verification.png)
24-
</Frame>
25-
</Accordion>
26-
<Accordion title="Monorepo Setup">
27-
If you want your docs to live alongside your code as a monorepo setup, you
28-
can: 1. Move your docs content to your monorepo. 2. Specify the path to your
29-
`docs.json` in the
30-
[dashboard](https://dashboard.mintlify.com/settings/deployment/git-settings)
31-
32-
<Frame>
33-
<img
34-
alt="Monorepo setup"
35-
className="block dark:hidden"
36-
src="/images/monorepo-light.png"
37-
/>
38-
39-
<img
40-
alt="Monorepo setup"
41-
className="hidden dark:block"
42-
src="/images/monorepo-dark.png"
43-
/>
44-
</Frame>
45-
</Accordion>
46-
</AccordionGroup>
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>
4731

48-
### Updating the Content
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.
4933

50-
Mintlify enables you to easily customize the style, structure, and content of
51-
your docs.
34+
## Development Workflows
5235

53-
<AccordionGroup>
54-
<Accordion title="Editing locally (recommended for developers)">
55-
1. Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
56-
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).
57-
3. Use your favorite IDE to open the repository.
58-
4. Install our Mintlify CLI to preview changes with `npm i -g mintlify`.
59-
60-
Learn more about this in our [local development guide](/installation).
61-
</Accordion>
62-
<Accordion title="Editing with the web editor">
63-
Learn more about how to use the web editor on our [guide](/editor).
64-
</Accordion>
65-
<Accordion title="Customizing to your brand">
66-
Easily customize colors, logos and buttons among other configurations in our `docs.json` file. Start with these basic configurations:
67-
68-
```json
69-
"name": "Your Company"
70-
"logo": {
71-
"light": "/logo/light.svg",
72-
"dark": "/logo/dark.svg",
73-
"href": "https://yourcompany.com"
74-
},
75-
"favicon": "/favicon.svg",
76-
"colors": {
77-
"primary": "#2AB673",
78-
"light": "#55D799",
79-
"dark": "#117866",
80-
},
81-
```
82-
83-
A full list of supported configurations can be found at [global settings](/core-concepts/settings).
84-
</Accordion>
85-
<Accordion title="Adding content">
86-
Add content with simple MDX files. Initiate your pages with this template:
87-
88-
```md
89-
---
90-
title: "Page Title"
91-
sidebarTitle: "Sidebar title (optional - if different from page title)"
92-
description: "Subtitle (optional)"
93-
---
94-
```
95-
96-
Learn more about adding images, tables, lists, and more using the [MDX syntax](/text). We also offer a [wide array of components](/content/components).
97-
</Accordion>
98-
<Accordion title="Pushing changes">
99-
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).
100-
101-
<Frame>
102-
![Manual
103-
Update](https://mintlify.s3-us-west-1.amazonaws.com/mintlify/images/manual-update.png)
104-
</Frame>
105-
</Accordion>
106-
<Accordion title="Generating API references">
107-
You can easily set up your API references using an OpenAPI document.
108-
109-
1. Add your `openapi.yaml` or `openapi.json` file into your docs repository or define the `openapi` field in `docs.json` with a URL.
110-
111-
```json
112-
"openapi": "link-to-your-openapi-file"
113-
```
114-
115-
2. Use our [scraper](/api-playground/openapi/setup#autogenerate-files-recommended) to autogenerate your OpenAPI endpoints files as:
116-
117-
```bash
118-
npx @mintlify/scraping@latest openapi-file <path-or-url-to-openapi-file>
119-
```
120-
121-
3. Finally, include the generated endpoint MDX files to your `docs.json` under `navigation`.
122-
123-
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).
124-
</Accordion>
125-
<Accordion title="Adding analytics">
126-
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).
127-
128-
We also support integrations with a range of analytics providers. You can find the list of providers [here](/integrations/analytics/overview).
129-
</Accordion>
130-
</AccordionGroup>
36+
Mintlify offers two different workflows for creating and maintaining your documentation.
37+
38+
<Card title="Code-based workflow" icon="terminal" horizontal>
39+
For developers who prefer working with their existing tools. [Jump to section](#code-based-workflow)
40+
</Card>
41+
42+
<Card title="Web editor workflow" icon="mouse-pointer-2" horizontal>
43+
For those who prefer a visual interface. [Jump to section](#web-editor-workflow)
44+
</Card>
45+
46+
## Code-Based Workflow
47+
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 Mintlify Command Line Interface (CLI) by running the following command in your terminal:
53+
54+
<CodeGroup>
55+
56+
```bash npm
57+
npm install -g mintlify
58+
```
59+
60+
61+
```bash yarn
62+
yarn global add mintlify
63+
```
64+
65+
66+
```bash pnpm
67+
pnpm add -g mintlify
68+
```
69+
70+
</CodeGroup>
71+
72+
<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>
13175

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.
91+
</Info>
92+
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"`.
107+
108+
```jsx introduction.mdx {2}
109+
---
110+
title: "Hello World"
111+
description: "This is the introduction to the documentation"
112+
---
113+
```
114+
115+
116+
### Preview the changes
117+
118+
To preview the changes locally, run the following command.
119+
120+
```bash
121+
mintlify dev
122+
```
123+
124+
Your preview will be available at `localhost:3000`.
125+
126+
<Frame>
127+
<img src="/images/quickstart/mintlify-dev-light.png" alt="Mintlify Dev" className="block dark:hidden" />
128+
<img src="/images/quickstart/mintlify-dev-dark.png" alt="Mintlify Dev" className="hidden dark:block" />
129+
</Frame>
130+
131+
### Push the changes
132+
133+
When you're ready to publish your changes, simply push the changes to your repository.
134+
135+
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).
136+
137+
Once the deployment is complete, your last update will be available at `<your-project-name>.mintlify.app`.
138+
139+
<Card title="Jump to adding a custom domain" icon="arrow-down" href="#adding-a-custom-domain" horizontal>
140+
Skip the web editor workflow and jump to adding a custom domain.
141+
</Card>
142+
143+
## Web Editor Workflow
144+
145+
The web editor workflow provides an intuitive interface for creating and editing documentation without requiring local development tools. It's ideal for non-technical team members or for making quick updates.
146+
147+
<Steps>
148+
<Step title="Access the Web Editor">
149+
Log in to your Mintlify Dashboard and select your project. Click the Edit button to open the web editor.
150+
<Frame>
151+
<img alt="Web Editor Access" src="/images/web-editor-access.png" />
152+
</Frame>
153+
</Step>
154+
<Step title="Make Changes to Your Documentation">
155+
In the web editor, you can navigate your documentation files in the sidebar. Let's update the introduction page:
156+
Find and click on introduction.mdx in the file explorer
157+
In the visual editor, update the title field to "Hello World"
158+
You'll see your changes reflected in the live preview on the right
159+
<Frame caption="Web Editor Interface">
160+
<img alt="Editing in Web Editor" src="/images/web-editor-interface.png" />
161+
</Frame>
162+
<Tip>
163+
The editor provides a rich set of formatting tools and components. Access them by clicking the "+" button or typing "/" in the editor to open the command menu.
164+
</Tip>
165+
</Step>
166+
<Step title="Publish Your Changes">
167+
When you're satisfied with your edits:
168+
Click the Publish button in the top-right corner
169+
Review your changes in the confirmation dialog
170+
Add a commit message describing your updates
171+
Click Confirm and Publish
172+
Your changes will be deployed immediately to your documentation site.
173+
<Frame>
174+
<img alt="Publishing Changes" src="/images/web-editor-publish.png" />
175+
</Frame>
132176
<Note>
133-
We provide a white-glove migration service as part of our Enterprise plan.
134-
Interested? You can request it by [contacting us](mailto:[email protected]).
177+
For teams using Git workflows, the web editor can create branches and pull requests instead of publishing directly to the main branch. This allows for proper review processes.
178+
</Note>
179+
</Step>
180+
<Step title="Add a Custom Domain (Optional)">
181+
Just as with the code-based workflow, you can add a custom domain through the dashboard:
182+
From your Mintlify dashboard, go to Settings > Custom Domain
183+
Enter your domain (e.g., docs.yourcompany.com)
184+
Follow the provided instructions to configure DNS settings with your domain provider
185+
</Step>
186+
</Steps>
187+
For more details about using the web editor, including advanced features like slash commands and image uploads, see our Web Editor documentation.
188+
Next Steps
189+
Congratulations! You've successfully deployed your first documentation site with Mintlify. Here are some suggested next steps to enhance your documentation:
190+
<CardGroup cols={2}>
191+
<Card title="Customize Your Theme" icon="paintbrush" href="/core-concepts/styling/themes">
192+
Learn how to customize colors, fonts, and the overall appearance of your documentation site.
193+
</Card>
194+
<Card title="Organize Navigation" icon="sitemap" href="/core-concepts/navigation/overview">
195+
Structure your documentation with intuitive navigation to help users find what they need.
196+
</Card>
197+
<Card title="Add Interactive Components" icon="puzzle-piece" href="/components/accordions">
198+
Enhance your documentation with interactive components like accordions, tabs, and code samples.
199+
</Card>
200+
<Card title="Set Up API References" icon="code" href="/api-playground/overview">
201+
Create interactive API references with OpenAPI and AsyncAPI specifications.
202+
</Card>
203+
</CardGroup>
204+
205+
## Adding a Custom Domain
206+
207+
While your `<name>.mintlify.app` subdomain works well for testing, most teams prefer using a custom domain for production documentation.
208+
From your Mintlify dashboard, go to Settings > Custom Domain
209+
210+
Enter your domain (e.g., docs.yourcompany.com)
211+
Follow the provided instructions to configure DNS settings with your domain provider
212+
213+
<Table>
214+
| Record Type | Name | Value | TTL |
215+
|-------------|------|-------|-----|
216+
| CNAME | docs (or subdomain) | cname.mintlify.app | 3600 |
217+
</Table>
218+
<Note>
219+
DNS changes can take up to 48 hours to propagate, though they often complete much sooner.
135220
</Note>
136221

137-
### Publishing
138-
139-
<Accordion title="Adding a custom domain">
140-
Integrate your docs into your website by hosting them on a custom domain. This is included in the free plan.
222+
## Troubleshooting
141223

142-
Navigate to your [dashboard settings](https://dashboard.mintlify.com/settings) to add a custom domain.
224+
If you encounter any issues during the setup process, check our common troubleshooting solutions:
143225

144-
<Frame>
145-
![Custom Domain](/images/custom-domain.png)
146-
</Frame>
226+
<AccordionGroup>
227+
<Accordion title="Local preview not working">
228+
Make sure you have Node.js v19+ installed and that you're running the mintlify dev command from the directory containing your docs.json file.
229+
</Accordion>
230+
<Accordion title="Changes not reflecting on live site">
231+
Deployment typically takes 1-2 minutes. Check your GitHub Actions (for code-based workflow) or deployment logs in the Mintlify dashboard to ensure there are no build errors.
232+
</Accordion>
233+
<Accordion title="Custom domain not connecting">
234+
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 to verify your CNAME record.
147235
</Accordion>
236+
</AccordionGroup>
237+
148238

149-
Congrats, you've set up your documentation on Mintlify\!
150239

151-
Need support or want to give some feedback? You can click `support` in the [dashboard](http://dashboard.mintlify.com) (bottom left corner) or reach out to [[email protected]](mailto:[email protected]).
152240

153-
You can also join our [community](https://mintlify.com/community) to engage with other Mintlify users and stay up to date with the latest feature drops.
241+
Need more help? Join our Community Discord or contact our Support Team.

0 commit comments

Comments
 (0)