Z103: ORPHAN_LINK
Severity: error
Penalty: 2.0 points
Category: structural
Auto-fixable: No
Rationale¶
This rule is triggered when a link references a Markdown file that exists on the local filesystem disk but is omitted from the site navigation tree (mkdocs.yml).
While the target file is physically present, the static site generator will not build or serve it. Linking to it creates a dead-end experience for users.
How to Fix¶
Inspect the flagged location in the Markdown file and update the content or configuration:
Bad (Triggers Z103)¶
<!-- BAD: Linking to an unlisted draft file -->
Check the [Draft Architecture](../../drafts/arch-v2.md).
Good (Resolves Z103)¶
<!-- GOOD: Link to a file registered in site navigation -->
Check the [Architecture Explanation](../explanation/architecture.md).
Configuration¶
# mkdocs.yml - Ensure target document is listed under nav
nav:
- Architecture: explanation/architecture.md
Reference¶
See the Finding Codes Index for finding code details.