# docs-link-check

Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder

- **Space:** docs-and-knowledge-base-public (https://github.com/Tech-Realm/space-docs-and-knowledge-base-public/tree/main/docs-link-check)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use docs-and-knowledge-base-public/docs-link-check` or MCP `get_pack docs-and-knowledge-base-public/docs-link-check`
- **Files:** CHANGELOG.md, code/linkcheck.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad/index.md, outcome/fixtures/bad/install.md, outcome/fixtures/bad/orphan.md, outcome/fixtures/good/faq.md, outcome/fixtures/good/img/flow.svg, outcome/fixtures/good/index.md, outcome/fixtures/good/install.md, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Catch broken links, missing anchors, untitled and orphan pages in a markdown docs folder.

## Steps

1. `python3 code/linkcheck.py <docs_dir> [--root index.md]`.
2. Fix every PROBLEM line; exit code 1 blocks the deploy in CI.
3. Run before Docusaurus/Outline imports.

## Edge cases

- External links are not fetched (use lychee for that).
- Anchors follow GitHub-style slugs.

## Don'ts

- Don't silence orphans; link them or delete them.

## Check

`lp pack check docs-and-knowledge-base/docs-link-check` runs outcome/checks.yaml.



---

Canonical URL: https://logicpacks.io/packs/docs-and-knowledge-base-public/docs-link-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
