## 手动修复错误
@@ -24,11 +35,13 @@ keywords: ["publish disabled", "fix invalid MDX before publishing", "invalid MDX
2. 使用
Cmd +
Shift +
S(macOS)或
Ctrl +
Shift +
S(Windows)切换到 source 模式。source 模式会高亮显示无效的 MDX 并展示解析错误。
3. 修复语法。页面能够解析后,错误即会消失,**Publish** 按钮也会重新可用。
+对于 frontmatter 错误,请检查每个值都是有效的 YAML:为包含冒号或特殊字符的字符串加上引号,保持缩进一致,并关闭所有引号。有关支持的 frontmatter 字段,请参阅[页面元数据](/zh/organize/pages#page-metadata)。
+
-### 使用智能体修复错误
+## 使用智能体修复错误
1. 打开编辑器面板。
-2. 提示智能体修复所有无效的 MDX 或 frontmatter YAML。
+2. 提示智能体修复所有无效的 MDX 或 frontmatter YAML。如果不进行提及,智能体会以你打开的页面作为初始上下文。若要通过一次提示修复分支上的所有错误,请让智能体查找并修复所有存在无效 MDX 的页面。参见[智能体](/zh/editor/agent)。
From 9aadc880f6a757724847fcb897e5130792afac51 Mon Sep 17 00:00:00 2001
From: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Date: Wed, 23 Sep 2026 11:00:45 -0700
Subject: [PATCH 3/4] Apply suggestion from @ethanpalm
---
editor/tutorial.mdx | 1 -
1 file changed, 1 deletion(-)
diff --git a/editor/tutorial.mdx b/editor/tutorial.mdx
index 0d57247c1..603790efb 100644
--- a/editor/tutorial.mdx
+++ b/editor/tutorial.mdx
@@ -9,7 +9,6 @@ This tutorial walks you through a complete content update using the editor. You'
**Prerequisites**
- - Access to the editor at [app.mintlify.com](https://app.mintlify.com). See [Web editor](/editor) for a tour of the interface.
- The **admin** or **editor** role. Viewers can edit on a branch and leave [comments and suggestions](/editor/collaborate), but they can't publish or request review. See [Roles](/dashboard/roles).
From 0e213205fae6a64284b66f069da71c6b08859753 Mon Sep 17 00:00:00 2001
From: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Date: Wed, 23 Sep 2026 11:01:27 -0700
Subject: [PATCH 4/4] Apply suggestion from @ethanpalm
---
editor/tutorial.mdx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/editor/tutorial.mdx b/editor/tutorial.mdx
index 603790efb..71d0def8e 100644
--- a/editor/tutorial.mdx
+++ b/editor/tutorial.mdx
@@ -7,9 +7,7 @@ keywords: ["editor", "tutorial", "branch", "publish"]
This tutorial walks you through a complete content update using the editor. You'll create a branch, make a change, share a preview for review, and publish your changes.
- **Prerequisites**
-
- - The **admin** or **editor** role. Viewers can edit on a branch and leave [comments and suggestions](/editor/collaborate), but they can't publish or request review. See [Roles](/dashboard/roles).
+You must have the **admin** or **editor** role to complete all the steps in this tutorial. Viewers can edit on a branch and leave [comments and suggestions](/editor/collaborate), but they can't publish or request review. See [Roles](/dashboard/roles).