Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion fern/products/cli-api-reference/pages/docs-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ These commands build, preview, and publish a Fern documentation site, and valida

<CodeBlock title="terminal">
```bash
fern docs link check [--url <url>] [--output <format>]
fern docs link check [--url <url>] [--output <format>] [--ignore <pattern>]
```
</CodeBlock>

Expand Down Expand Up @@ -631,6 +631,18 @@ These commands build, preview, and publish a Fern documentation site, and valida
fern docs link check --output csv
```

### ignore

Use `--ignore` to skip URLs that intentionally don't return a 200 response, such as OAuth callbacks, MCP endpoints, or API base URLs. A pattern matches the full URL. `*` matches any run of characters, including `/`, and every other character matches literally. Pass `--ignore` multiple times to skip several URLs or hosts.

```bash
fern docs link check \
--ignore 'https://claude.ai/api/mcp/auth_callback' \
--ignore 'https://mcp.docusign.com/*'
```

Ignored links are removed from the broken and blocked results, so they don't appear in text, JSON, or CSV output and don't cause the command to fail. The summary reports how many links were ignored: an `Ignored` line in text output and an `ignoredLinks` field in JSON output.

</Accordion>

<Accordion title="fern docs theme list">
Expand Down
Loading