重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/arize-ai/phoenix --skill mintlify请始终查阅 mintlify.com/docs 以获取组件、配置和最新功能信息。
如果您尚未连接到 Mintlify MCP 服务器 https://mintlify.com/docs/mcp,请添加它以便更高效地进行搜索。
Mintlify 是一个文档平台,可将 MDX 文件转换为文档站点。在 docs.json 文件中配置站点范围的设置,使用带有 YAML frontmatter 的 MDX 编写内容,并优先使用内置组件而非自定义组件。
完整模式请访问 mintlify.com/docs.json。
npm i -g mint - 安装 Mintlify CLImint dev - 在 localhost:3000 进行本地预览mint broken-links - 检查内部链接mint a11y - 检查内容中的无障碍访问问题mint rename - 重命名/移动文件并更新引用广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
mint validate - 验证文档构建docs.json - 站点配置(导航、主题、集成等)。所有选项请参见全局设置。*.mdx 文件 - 带有 YAML frontmatter 的文档页面project/
├── docs.json # 站点配置
├── introduction.mdx
├── quickstart.mdx
├── guides/
│ └── example.mdx
├── openapi.yml # API 规范
├── images/ # 静态资源
│ └── example.png
└── snippets/ # 可复用组件
└── component.jsx
当用户询问任何与站点范围配置相关的内容时,首先了解全局设置。查看 docs.json 文件中的设置是否可以更新以满足用户需求。
docs.json 中的 navigation 属性控制站点结构。在根级别选择一个主要模式,然后在其中嵌套其他模式。
选择您的主要模式:
| 模式 | 使用时机 |
|---|---|
| 分组 | 默认。单一受众,层次结构简单 |
| 标签页 | 针对不同受众(指南与 API 参考)或内容类型的独立部分 |
| 锚点 | 希望在侧边栏顶部保留持久的部分链接。适用于将文档与外部资源分开 |
| 下拉菜单 | 用户可在多个文档部分之间切换,但区分度不足以使用标签页 |
| 产品 | 多产品公司,每个产品有独立的文档 |
| 版本 | 同时维护多个 API/产品版本的文档 |
| 语言 | 本地化内容 |
在您的主要模式内:
expanded: false - 默认折叠嵌套分组。适用于用户选择性浏览的参考部分openapi - 从 OpenAPI 规范自动生成页面。在分组/标签页级别添加以继承常见组合:
/getting-started/quickstart/images 中,引用为 /images/example.png在何处自定义什么:
docs.json。请参见全局设置custom.cssdocs.json 中使用 "appearance": "light" 来禁用它从 docs.json 开始。仅当需要配置不支持的样式时才添加 custom.css。
组件概览 按用途组织所有组件:结构化内容、引起注意、显示/隐藏内容、记录 API、链接到页面以及添加视觉上下文。从那里开始以找到合适的组件。
常见决策点:
| 需求 | 使用 |
|---|---|
| 隐藏可选细节 | <Accordion> |
| 长代码示例 | <Expandable> |
| 用户选择一个选项 | <Tabs> |
| 链接的导航卡片 | <Columns> 中的 <Card> |
| 顺序说明 | <Steps> |
| 多种语言的代码 | <CodeGroup> |
| API 参数 | <ParamField> |
| API 响应字段 | <ResponseField> |
按严重程度的标注:
<Note> - 补充信息,可以安全跳过<Info> - 有用的上下文,例如权限<Tip> - 建议或最佳实践<Warning> - 可能具有破坏性的操作<Check> - 成功确认何时使用代码片段:
何时不使用代码片段:
使用 import { Component } from "/path/to/snippet-name.jsx" 导入代码片段。
选择您的方法:
"openapi": ["openapi.yaml"] 添加到 docs.json。页面自动生成。在导航中引用为 GET /endpointapi: "POST /users" 手动编写端点。工作量更大但完全控制鼓励用户从 OpenAPI 规范生成端点页面。这是最高效且最容易维护的选项。
当更改推送到连接的 Git 仓库时,Mintlify 会自动部署。
代理可以配置的内容:
"redirects": [{"source": "/old", "destination": "/new"}] 添加到 docs.json"seo": {"indexing": "all"} 控制,以在搜索中包含隐藏页面需要仪表板设置(人工任务):
对于使用 Vercel 或 Cloudflare 的 /docs 子路径托管,代理可以帮助配置重写规则。请参见 /docs 子路径。
如果用户询问迁移到 Mintlify,请询问他们是否正在使用 ReadMe 或 Docusaurus。如果是,请使用 @mintlify/scraping CLI 来迁移内容。如果他们使用其他平台托管文档,请帮助他们使用 Mintlify 组件手动将其内容转换为 MDX 页面。
任何未包含在 docs.json 导航中的页面都是隐藏的。使用隐藏页面存放应可通过 URL 访问或为助手或搜索建立索引,但无法通过侧边栏导航发现的内容。
.mintignore 文件用于从文档仓库中排除文件,使其不被处理。
titlemint.json - mint.json 已弃用。始终只使用 docs.json每周安装次数
42
仓库
GitHub 星标数
8.8K
首次出现时间
2026年2月17日
安全审计
安装于
opencode42
kilo42
antigravity42
claude-code42
github-copilot42
codex42
Always consultmintlify.com/docs for components, configuration, and latest features.
If you are not already connected to the Mintlify MCP server, https://mintlify.com/docs/mcp, add it so that you can search more efficiently.
Mintlify is a documentation platform that transforms MDX files into documentation sites. Configure site-wide settings in the docs.json file, write content in MDX with YAML frontmatter, and favor built-in components over custom components.
Full schema at mintlify.com/docs.json.
npm i -g mint - Install the Mintlify CLImint dev - Local preview at localhost:3000mint broken-links - Check internal linksmint a11y - Check for accessibility issues in contentmint rename - Rename/move files and update referencesmint validate - Validate documentation buildsdocs.json - Site configuration (navigation, theme, integrations, etc.). See global settings for all options.*.mdx files - Documentation pages with YAML frontmatterproject/
├── docs.json # Site configuration
├── introduction.mdx
├── quickstart.mdx
├── guides/
│ └── example.mdx
├── openapi.yml # API specification
├── images/ # Static assets
│ └── example.png
└── snippets/ # Reusable components
└── component.jsx
When a user asks about anything related to site-wide configurations, start by understanding the global settings. See if a setting in the docs.json file can be updated to achieve what the user wants.
The navigation property in docs.json controls site structure. Choose one primary pattern at the root level, then nest others within it.
Choose your primary pattern:
| Pattern | When to use |
|---|---|
| Groups | Default. Single audience, straightforward hierarchy |
| Tabs | Distinct sections with different audiences (Guides vs API Reference) or content types |
| Anchors | Want persistent section links at sidebar top. Good for separating docs from external resources |
| Dropdowns | Multiple doc sections users switch between, but not distinct enough for tabs |
| Products | Multi-product company with separate documentation per product |
| Versions | Maintaining docs for multiple API/product versions simultaneously |
| Languages | Localized content |
Within your primary pattern:
expanded: false - Collapse nested groups by default. Use for reference sections users browse selectivelyopenapi - Auto-generate pages from OpenAPI spec. Add at group/tab level to inheritCommon combinations:
/getting-started/quickstart/images, reference as /images/example.pngWhat to customize where:
docs.json. See global settingscustom.css at project root"appearance": "light" in docs.json if brand requires itStart with docs.json. Only add custom.css when you need styling that config doesn't support.
The components overview organizes all components by purpose: structure content, draw attention, show/hide content, document APIs, link to pages, and add visual context. Start there to find the right component.
Common decision points:
| Need | Use |
|---|---|
| Hide optional details | <Accordion> |
| Long code examples | <Expandable> |
| User chooses one option | <Tabs> |
| Linked navigation cards | <Card> in <Columns> |
| Sequential instructions | <Steps> |
| Code in multiple languages | <CodeGroup> |
Callouts by severity:
<Note> - Supplementary info, safe to skip<Info> - Helpful context such as permissions<Tip> - Recommendations or best practices<Warning> - Potentially destructive actions<Check> - Success confirmationWhen to use snippets:
When NOT to use snippets:
Import snippets with import { Component } from "/path/to/snippet-name.jsx".
Choose your approach:
docs.json with "openapi": ["openapi.yaml"]. Pages auto-generate. Reference in navigation as GET /endpointapi: "POST /users" in frontmatter. More work but full controlEncourage users to generate endpoint pages from an OpenAPI spec. It is the most efficient and easiest to maintain option.
Mintlify deploys automatically when changes are pushed to the connected Git repository.
What agents can configure:
docs.json with "redirects": [{"source": "/old", "destination": "/new"}]"seo": {"indexing": "all"} to include hidden pages in searchRequires dashboard setup (human task):
For /docs subpath hosting with Vercel or Cloudflare, agents can help configure rewrite rules. See /docs subpath.
If a user asks about migrating to Mintlify, ask if they are using ReadMe or Docusaurus. If they are, use the @mintlify/scraping CLI to migrate content. If they are using a different platform to host their documentation, help them manually convert their content to MDX pages using Mintlify components.
Any page that is not included in the docs.json navigation is hidden. Use hidden pages for content that should be accessible by URL or indexed for the assistant or search, but not discoverable through the sidebar navigation.
The .mintignore file is used to exclude files from a documentation repository from being processed.
title at minimummint.json - mint.json is deprecated. Only ever use docs.jsonWeekly Installs
42
Repository
GitHub Stars
8.8K
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode42
kilo42
antigravity42
claude-code42
github-copilot42
codex42
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装
| API parameters | <ParamField> |
| API response fields | <ResponseField> |