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

## 稳定的命名预览链接

通过向 `fern generate --docs --preview` 传递 `--id` 参数，与审阅者分享单个预览链接，该链接在您推送更改时保持最新状态。使用相同的 `--id` 重新运行会就地更新现有预览，而不是创建新的 URL。

```bash
fern generate --docs --preview --id my-feature
```

要在 CI 中设置此功能，请更新您的 [GitHub Actions 工作流](/learn/zh/docs/preview-publish/preview-changes#automate-with-github-actions)，将分支名称作为 `--id` 传递。

阅读文档