> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI3ZDJlZmIwYi1hNGFiLTQzYjQtODJkZS0zM2Q1OGZmZjM2M2QiLCJleHAiOjE3NzgyNTg4NzQsImlhdCI6MTc3ODI1ODU3NH0.IPqejBSzirYykqx5B8Cr_XAkkPSApfVSUrQbtJ6tEJc
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# 配置概述

> 了解如何在站点级别和页面级别配置您的 Fern 文档站点。

Fern 文档在两个级别进行配置：在 `docs.yml` 中的**站点级别**设置适用于全局，在前言中的**页面级别**设置控制单个页面。

## 站点级别配置

`docs.yml` 文件控制您站点的外观、结构和行为。以下所有设置都在 `docs.yml` 中配置。

<CardGroup cols={2}>
  <Card title="站点级别设置" icon="fa-duotone fa-sliders" href="/learn/docs/configuration/site-level-settings">
    颜色、排版、logo、布局、导航栏链接和分析
  </Card>

  <Card title="章节、页面和文件夹" icon="fa-duotone fa-bars" href="/learn/docs/configuration/navigation">
    使用章节、页面和文件夹组织您的侧边栏
  </Card>

  <Card title="选项卡" icon="fa-duotone fa-folder-open" href="/learn/docs/configuration/tabs">
    将内容分组到可切换的选项卡中，支持可选变体
  </Card>

  <Card title="版本" icon="fa-duotone fa-code-branch" href="/learn/docs/configuration/versions">
    为多个文档版本添加下拉版本选择器
  </Card>

  <Card title="产品" icon="fa-duotone fa-grid-2" href="/learn/docs/configuration/products">
    为多产品站点添加产品切换器
  </Card>

  <Card title="更新日志" icon="fa-duotone fa-clock-rotate-left" href="/learn/docs/configuration/changelogs">
    带有标记和 RSS 的变更时间记录
  </Card>
</CardGroup>

## 页面级别配置

在单个 `.mdx` 文件中使用前言来覆盖特定页面的站点级别默认设置，例如标题、元描述、URL 段、布局和页面元素的可见性。

<CardGroup cols={2}>
  <Card title="页面级别设置" icon="fa-duotone fa-file-lines" href="/learn/docs/configuration/page-level-settings">
    标题、描述、URL 段、布局、可用性徽章等
  </Card>
</CardGroup>