> 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/guan-li-ni-de-zhan-dian/customization/layout-and-structure.md).

# 布局和结构

### 页眉

<figure><img src="/files/76047077c3c1fda94168042de13aefd306461bc2" alt="A GitBook screenshot showing header customization settings"><figcaption></figcaption></figure>

**搜索栏**

更改搜索栏的位置和外观，在显眼（居中显示在页眉中）和低调（位于右上角）之间切换。完全关闭页眉后，搜索栏将改为放置在侧边栏中。

**导航**

在你的网站中添加页眉链接。你可以使用页眉链接指向文档中的重要部分，或链接回你的主网站。

你可以选择链接的外观——普通链接、主按钮或次按钮。启用后，只需为每个链接添加标题和 URL。我们支持两级页眉导航，这意味着你可以拥有在下拉菜单中显示的子链接。

使用 `本地化标题` 用于将页眉链接和按钮标题，以及站点、章节和章节组标题本地化。

### 公告 <picture><source srcset="/files/8pdGCn8TI6WIcFGsPNFh" media="(prefers-color-scheme: dark)"><img src="/files/40b88cc6f18108fd7d78ba3a6dd23080d1b04f2f" alt=""></picture> <picture><source srcset="/files/iRBqMn8OAyswwIZUIKbS" media="(prefers-color-scheme: dark)"><img src="/files/9ecf76138d806047ae4679b26e60179238588f05" alt=""></picture>

启用此选项可在你已发布网站的顶部添加公告横幅。你可以添加一条消息，并可选地包含一个链接和行动号召，它们会在横幅中显示在你的消息之后。

你也可以使用与提示块相同的选项更改公告样式——信息、警告、危险和成功。这些样式的颜色由你的语义颜色设置决定。

### 分页

控制在你章节中每个页面底部显示的“上一页”和“下一页”按钮的显示。你也可以为特定页面设置此功能。

### 页脚 <picture><source srcset="/files/8pdGCn8TI6WIcFGsPNFh" media="(prefers-color-scheme: dark)"><img src="/files/40b88cc6f18108fd7d78ba3a6dd23080d1b04f2f" alt=""></picture> <picture><source srcset="/files/iRBqMn8OAyswwIZUIKbS" media="(prefers-color-scheme: dark)"><img src="/files/9ecf76138d806047ae4679b26e60179238588f05" alt=""></picture>

<figure><img src="/files/79fda0e5f96ac0c0828c36ea829816759bba02de" alt="A GitBook screenshot showing footer customization settings"><figcaption></figcaption></figure>

**徽标**

在页脚中添加你的徽标或其他图片。

**版权文本**

在页脚中添加版权信息。

**导航**

在页脚中添加链接，并将其组织为多个部分。与页眉类似，为每个链接添加标题和 URL，并为每组链接包含一个部分标题。

使用 `本地化标题` 用于将页脚链接和组标题，以及站点、章节和章节组标题本地化。


---

# 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/guan-li-ni-de-zhan-dian/customization/layout-and-structure.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.
