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

## 自定义页面操作

定义具有自定义标题、图标和 URL 的页面操作按钮。自定义操作与复制页面和以 Markdown 查看等内置页面操作一起显示，并且可以链接到外部工具、编辑器或任何 URL。

**`docs.yml`**

```yaml docs.yml
page-actions:
  options:
    custom:
      - title: 在 Windsurf 中打开
        subtitle: 使用 AI 辅助编辑
        url: "windsurf://open?url={url}"
        icon: fa-solid fa-wind
        default: true
```

自定义操作支持 `{slug}`、`{domain}` 和 `{url}` 等 URL 占位符，可以动态地将页面信息插入到链接中。

阅读文档