quickstart.mdx 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ---
  2. title: "Quickstart"
  3. description: "Start building awesome documentation in minutes"
  4. ---
  5. ## Get started in three steps
  6. Get your documentation site running locally and make your first customization.
  7. ### Step 1: Set up your local environment
  8. <AccordionGroup>
  9. <Accordion icon="copy" title="Clone your docs locally">
  10. During the onboarding process, you created a GitHub repository with your docs content if you didn't already have one. You can find a link to this repository in your [dashboard](https://dashboard.mintlify.com).
  11. To clone the repository locally so that you can make and preview changes to your docs, follow the [Cloning a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) guide in the GitHub docs.
  12. </Accordion>
  13. <Accordion icon="rectangle-terminal" title="Start the preview server">
  14. 1. Install the Mintlify CLI: `npm i -g mint`
  15. 2. Navigate to your docs directory and run: `mint dev`
  16. 3. Open `http://localhost:3000` to see your docs live!
  17. <Tip>Your preview updates automatically as you edit files.</Tip>
  18. </Accordion>
  19. </AccordionGroup>
  20. ### Step 2: Deploy your changes
  21. <AccordionGroup>
  22. <Accordion icon="github" title="Install our GitHub app">
  23. Install the Mintlify GitHub app from your [dashboard](https://dashboard.mintlify.com/settings/organization/github-app).
  24. Our GitHub app automatically deploys your changes to your docs site, so you don't need to manage deployments yourself.
  25. </Accordion>
  26. <Accordion icon="palette" title="Update your site name and colors">
  27. For a first change, let's update the name and colors of your docs site.
  28. 1. Open `docs.json` in your editor.
  29. 2. Change the `"name"` field to your project name.
  30. 3. Update the `"colors"` to match your brand.
  31. 4. Save and see your changes instantly at `http://localhost:3000`.
  32. <Tip>Try changing the primary color to see an immediate difference!</Tip>
  33. </Accordion>
  34. </AccordionGroup>
  35. ### Step 3: Go live
  36. <Accordion icon="rocket" title="Publish your docs">
  37. 1. Commit and push your changes.
  38. 2. Your docs will update and be live in moments!
  39. </Accordion>
  40. ## Next steps
  41. Now that you have your docs running, explore these key features:
  42. <CardGroup cols={2}>
  43. <Card title="Write Content" icon="pen-to-square" href="/essentials/markdown">
  44. Learn MDX syntax and start writing your documentation.
  45. </Card>
  46. <Card title="Customize style" icon="palette" href="/essentials/settings">
  47. Make your docs match your brand perfectly.
  48. </Card>
  49. <Card title="Add code examples" icon="square-code" href="/essentials/code">
  50. Include syntax-highlighted code blocks.
  51. </Card>
  52. <Card title="API documentation" icon="code" href="/api-reference/introduction">
  53. Auto-generate API docs from OpenAPI specs.
  54. </Card>
  55. </CardGroup>
  56. <Note>
  57. **Need help?** See our [full documentation](https://mintlify.com/docs) or join our [community](https://mintlify.com/community).
  58. </Note>