ci: add lychee broken link validation CI for docs
What this PR does:
Introduces an automated broken link and asset checker CI pipeline for the docs/ directory using Lychee.
- GitHub Actions Workflow (
.github/workflows/docs-link-checker.yaml):- DX-Optimized PR Checking: On pull requests, it uses a secure native
git diffcompared toorigin/masterto isolate and scan only modified markdown files. This guarantees developers are not blocked by legacy, historical broken links. - Thorough master Audits: On push to
master, it executes a full-health check across all active documentation pages (docs/content/**/*.mdanddocs/README.md).
- DX-Optimized PR Checking: On pull requests, it uses a secure native
- Lychee Ruleset Configuration (
lychee.toml):- Configures
root_dir = "docs/static"to resolve root-relative paths like/images/...to physical local files. - Bypasses local/private URLs and dynamic Hugo page-routing links.
- Adds resilience to network rate limits and DDoS protectors (e.g. Cloudflare) by treating common false-positive HTTP codes (
400,403,429) as acceptable.
- Configures
Why we need it: Manually catching 404 links and broken image assets in documentation is highly error-prone. This CI pipeline:
- Automatically prevents new broken links from being merged.
- Provides a fast, frictionless experience for developers (zero-dependency, only processes their specific changed files in PRs).
- Protects docs quality without introducing pipeline noise.
Does this PR introduce a user-facing change?: No
@rahulshendre @khanhtc1202 @eeshaanSA
@Ayushmore1214 Yeah, I saw that one, but it looked stale so I opened this instead.
Hi @vanshika2720 thanks for putting this together your approach with the PR diff scanning looks really interesting I've been actively working on #6570 for this issue, but I understand why it might have seemed inactive if there haven't been recent commits and @Ayushmore1214 thanks for the ping I will absolutely join the community meet tomorrow so we can compare the approaches and figure out the best solution for PipeCD See you both there :)
@Ayushmore1214 Yeah, I saw that one, but it looked stale so I opened this instead.
You might have asked the owner of the PR if the PR is still active or not, but no worries keep in mind from next time
Hi @vanshika2720 thanks for putting this together your approach with the PR diff scanning looks really interesting I've been actively working on #6570 for this issue, but I understand why it might have seemed inactive if there haven't been recent commits and @Ayushmore1214 thanks for the ping I will absolutely join the community meet tomorrow so we can compare the approaches and figure out the best solution for PipeCD See you both there :)
Hi @zyzzmohit FYI the meet was today not tomorrow, no worries you can discuss the intent here
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
@rahulshendre @mohammedfirdouss PTAL!!