Get started in three steps
Get your documentation site running locally and make your first customization.Step 1: Set up your local environment
Clone your docs locally
Clone your docs locally
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文档中的克隆仓库指南。
Start the preview server
Start the preview server
-
Install the Mintlify CLI:
npm i -g mint -
Navigate to your docs directory and run:
mint dev -
Open
http://localhost:3000to see your docs live! -
安装 Mintlify CLI:
npm i -g mint -
切换到您的文档目录并运行:
mint dev -
打开
http://localhost:3000查看您的文档实时效果!
Step 2: Deploy your changes
Install our GitHub app
Install our GitHub app
Update your site name and colors
Update your site name and colors
For a first change, let’s update the name and colors of your docs site.首先,让我们更新您文档网站的名称和颜色。
-
Open
docs.jsonin your editor. -
Change the
"name"field to your project name. -
Update the
"colors"to match your brand. -
Save and see your changes instantly at
http://localhost:3000. -
在您的编辑器中打开
docs.json。 -
将
"name"字段更改为您的项目名称。 -
更新
"colors"以匹配您的品牌。 -
保存并立即在
http://localhost:3000查看您的更改。
Step 3: Go live
Publish your docs
Publish your docs
- Commit and push your changes.
- 提交并推送你的更改。
- Your docs will update and be live in moments!
- 您的文档将立即更新并实时生效!
下一步
现在您已经启动了您的文档,探索这些关键功能:Write Content
Learn MDX syntax and start writing your documentation.学习MDX语法,开始编写您的文档。
Customize style
Make your docs match your brand perfectly.让您的文档与您的品牌完美匹配。
Add code examples
Include syntax-highlighted code blocks.包括语法高亮的代码块。
API documentation
Auto-generate API docs from OpenAPI specs.自动从OpenAPI规范生成API文档。
Need help? See our full documentation or join our community.