> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 自定义 `llms.txt` 和 `llms-full.txt` 文件

提供您自己的 `llms.txt` 和 `llms-full.txt` 文件，而不是使用自动生成的版本。在 `docs.yml` 的 `agents` 键下添加文件路径：

**`docs.yml`**

```yaml docs.yml
agents:
  llms-txt: ./path/to/llms.txt
  llms-full-txt: ./path/to/llms-full.txt
```

自定义文件在根级 `/llms.txt` 和 `/llms-full.txt` 端点提供。嵌套路径继续使用自动生成的输出。

需要 Fern CLI 版本 `4.67.0` 或更高版本。

阅读文档