ADR 0013: Treat documentation link integrity and anchor stability as quality-critical
- Status: Accepted
- Date: 2026-03-09
Context
Documentation quality depends on route and anchor stability across authored markdown, sidebars, and generated API pages.
Broken anchors reduce trust in maintainer guides and slow contributor onboarding because navigation paths become non-deterministic.
The repository already runs docs builds and markdown validation, but link integrity handling needs explicit architecture-level guidance.
Decision
Adopt a link-integrity policy for maintainer docs:
- Treat broken docs links/anchors as actionable quality failures, not cosmetic warnings.
- Prefer stable, intentional section headings for heavily referenced anchors.
- When generated-anchor links are fragile, prefer linking to stable page-level sections or explicit maintained anchors.
- Validate link integrity during docs-impacting changes using docs build commands.
Rationale
- DX reliability: contributors should trust navigation in docs and ADRs.
- Maintenance efficiency: explicit policy reduces repeated ad hoc link fixes.
- Release quality: documentation breakage should be detected before publish readiness.
Consequences
- Docs-impacting changes require intentional link/anchor checks.
- Maintainers may add or retain dedicated headings to preserve stable references.
- ADRs and chart docs should favor resilient references over brittle generated fragments.
Revisit Triggers
Re-evaluate if:
- Docusaurus or TypeDoc introduces stronger stable-anchor primitives,
- repository policy changes to hard-fail docs builds on all link warnings,
- or docs architecture migrates to a different static-site pipeline.