quickstart.mdx 2.9 KB

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