Skip to main content

Get started in three steps

Get your documentation site running locally and make your first customization.

Step 1: Set up your local environment

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.在入职过程中,如果您之前没有创建过,您已经创建了一个包含文档内容的GitHub仓库。您可以在您的仪表板中找到该仓库的链接。 To clone the repository locally so that you can make and preview changes to your docs, follow the Cloning a repository guide in the GitHub docs.要本地克隆仓库以便您能够制作和预览对文档的更改,请遵循GitHub文档中的克隆仓库指南。
  1. Install the Mintlify CLI: npm i -g mint
  2. Navigate to your docs directory and run: mint dev
  3. Open http://localhost:3000 to see your docs live!
  4. 安装 Mintlify CLI: npm i -g mint
  5. 切换到您的文档目录并运行: mint dev
  6. 打开 http://localhost:3000 查看您的文档实时效果!
    您的预览会自动更新,当您编辑文件时.

Step 2: Deploy your changes

Install the Mintlify GitHub app from your dashboard.从您的仪表板安装 Mintlify GitHub 应用程序。Our GitHub app automatically deploys your changes to your docs site, so you don’t need to manage deployments yourself.我们的GitHub应用会自动将您的更改部署到您的文档网站上,因此您无需自行管理部署。
For a first change, let’s update the name and colors of your docs site.首先,让我们更新您文档网站的名称和颜色。
  1. Open docs.json in your editor.
  2. Change the "name" field to your project name.
  3. Update the "colors" to match your brand.
  4. Save and see your changes instantly at http://localhost:3000.
  5. 在您的编辑器中打开 docs.json
  6. "name" 字段更改为您的项目名称。
  7. 更新 "colors" 以匹配您的品牌。
  8. 保存并立即在 http://localhost:3000 查看您的更改。
尝试更改主色调以立即看到差异!

Step 3: Go live

  1. Commit and push your changes.
  2. 提交并推送你的更改。
  3. Your docs will update and be live in moments!
  4. 您的文档将立即更新并实时生效!

下一步

现在您已经启动了您的文档,探索这些关键功能:
Need help? See our full documentation or join our community.