跳到导航

导航栏下拉菜单

在导航栏中使用新的下拉菜单来分组相关链接。将资源、工具或外部链接组织在单个按钮下,保持页头简洁。

docs.yml
navbar-links:
- type: dropdown
text: Resources # dropdown button text
icon: fa-solid fa-seedling # optional icon
links:
- text: Plant database # link display text
href: https://example.com/plants # destination URL
icon: fa-regular fa-leaf # optional icon
- text: Growing guides
href: https://example.com/guides
阅读文档

API Explorer 直接请求

现在您可以直接向您的 API 发送 API Explorer 请求,而不是通过 Fern 的代理。这对于测试跨域资源共享(CORS)配置和调试身份验证流程很有用。

docs.yml
settings:
disable-explorer-proxy: true

您的 API 必须启用 CORS 以允许来自文档域的请求。

阅读文档