From ade005cf1e29c97e76b5a020c6dcc2aeae763252 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 17:07:13 +0000 Subject: [PATCH] docs: document --ignore option for fern docs link check Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../cli-api-reference/pages/docs-commands.mdx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fern/products/cli-api-reference/pages/docs-commands.mdx b/fern/products/cli-api-reference/pages/docs-commands.mdx index b3c6666a7..6508f9a19 100644 --- a/fern/products/cli-api-reference/pages/docs-commands.mdx +++ b/fern/products/cli-api-reference/pages/docs-commands.mdx @@ -572,7 +572,7 @@ These commands build, preview, and publish a Fern documentation site, and valida ```bash - fern docs link check [--url ] [--output ] + fern docs link check [--url ] [--output ] [--ignore ] ``` @@ -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. +