> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/docs-site/customization/extra-configuration.md).

# 额外配置

在 **配置** 选项卡中，您可以更改与您的网站相关的其他设置。例如，您可以设置界面本地化、链接行为和页面操作，帮助用户将您的内容添加到 ChatGPT 等 AI 工具中。

在此页面中，您将了解这些选项各自的作用，以及如何启用或禁用它们。

### 本地化用户界面

您可以从语言列表中选择一种语言，以本地化您已发布内容的用户界面。此设置会将翻译应用于界面中非自定义的区域。

此设置不会 *不* 自动翻译您的实际内容，但它可以帮助界面与您所写的语言保持一致。要了解有关翻译内容的更多信息，请前往 [翻译](/docs/documentation/zh/gitbook-agent/translations.md) 部分中添加建议问题。

是否有我们尚未提供、但您希望加入的语言？ [告诉我们](https://github.com/GitbookIO/gitbook/issues)，或者 [贡献您自己的翻译](https://www.gitbook.com/solutions/open-source)!

### 主链接

在 **主链接** 部分中的 **配置** 选项卡中，您可以为文档站点左上角的徽标设置自定义 URL。

默认情况下，点击徽标或站点标题会将用户带回您文档站点的第一页。您可以改为设置一个站点外的自定义 URL——或站点中的某个页面、部分或变体——来打开。如果您的文档是更大网站的一部分，这可以帮助访问者返回到您自己的落地页。

### 外部链接

该 **外部链接** 部分中的 **配置** 选项卡控制当您的网站用户点击指向外部 URL 的链接时的行为。默认情况下，这些链接会在同一选项卡中打开，但如果您愿意，也可以将其改为在新选项卡中打开。

### 页面操作

页面操作会在文档的每个页面上添加一个页面级下拉菜单，允许用户对页面内容执行快捷操作——非常适合将您的文档内容作为 AI 提示词中的上下文。

如果您不希望在已发布的文档中显示页面选项，可以在 **配置** 选项卡中禁用此选项。

如果您禁用 **页面操作**，GitBook 也会禁用位于 `~gitbook/mcp`的 MCP 服务器。要使用 MCP，请保持 **页面操作** 在 **站点自定义** → **页面操作**.

<figure><img src="/files/b7ad7e4ee0c614ff9b68a82ddcff40224b0d381c" alt=""><figcaption></figcaption></figure>

#### 在 AI 提供商中打开

启用此选项后，会显示一个操作，以使用页面内容打开 ChatGPT 或 Claude。

#### 复制/以 Markdown 查看

启用此选项后，会显示一个操作，以将页面内容复制或以 Markdown 形式查看。

#### 连接 MCP 服务器

启用此选项后，会在页面操作菜单中显示 MCP 服务器链接。

此选项本身不会启用 MCP 服务器。MCP 服务器仅在 **页面操作** 已启用时才可工作。要了解更多信息，请参见 [已发布文档的 MCP 服务器](/docs/documentation/zh/ai-yu-sou-suo/mcp-servers-for-published-docs.md).

#### 在 GitHub/GitLab 上编辑

如果您的部分已连接到 Git 仓库，您可以在 **配置** 选项卡中启用此选项，向用户显示一个链接，让他们可以从您关联的仓库为文档做出贡献。

#### 导出 PDF

启用此选项可允许访问者 [导出 PDF](/docs/documentation/zh/docs-site/pdf-export.md) ，用于您的文档。

### 隐私政策

在 **隐私政策** 部分中的 **配置** 选项卡中，您可以链接到您自己的隐私政策，帮助访问者了解您的 GitBook 内容如何使用 Cookie，以及您如何保护他们的隐私。如果您选择不设置，您的站点将默认使用 [GitBook 的隐私政策](https://gitbook.com/docs/policies/privacy-and-security/statement/cookies).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/docs-site/customization/extra-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
