From 24b0001af9c5d4bd298c030404abc74f369b4168 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sat, 21 Feb 2026 02:13:17 +0000 Subject: [PATCH] Document new broken-links CLI flags Add documentation for --check-external and --check-snippets flags added in mintlify/mint#6145 Generated-By: mintlify-agent --- installation.mdx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/installation.mdx b/installation.mdx index bc4b64958..90199fbbf 100644 --- a/installation.mdx +++ b/installation.mdx @@ -183,10 +183,18 @@ mint broken-links The command ignores files matching [.mintignore](/organize/mintignore) patterns. Links that point to ignored files are reported as broken. -To also check anchor links like `/path/to/page#anchor`, use the `--check-anchors` flag: +#### Flags + +| Flag | Description | +| --- | --- | +| `--check-anchors` | Validate anchor links (e.g. `#section`) against heading slugs | +| `--check-external` | Check external links for broken URLs | +| `--check-snippets` | Check links inside `` components | + +Example with multiple flags: ```bash -mint broken-links --check-anchors +mint broken-links --check-anchors --check-external ``` ### Find accessibility issues