Repository navigation
Description
Goal
After torrust-linting adds lychee support, enforce deterministic local Markdown file and fragment checks through the existing pre-commit and normal CI linting paths. Add a separate advisory weekly workflow for external URLs so link rot is detected without making network failures a merge blocker.
Background
Tracker issue #2150 established lychee.toml with offline = true and include_fragments = "full", repaired the maintained Markdown local-link baseline, and opened torrust/torrust-linting#3 to add lychee to the shared linter CLI.
Local links and anchors are deterministic and fast, so they are appropriate for pre-commit and normal CI. External links need network requests and can fail due to transient network failures, rate limits, or unavailable third parties. Therefore they must run only through a scheduled or manually dispatched workflow that is not a required PR status check. Lychee must fail normally in that workflow so findings are visible; the workflow remains non-blocking because it is not required for merge, not because it uses continue-on-error.
Scope
- Block implementation on completion of
torrust/torrust-linting#3. - Wire the shared offline
linter lycheecheck into the repository's normal linting path, pre-commit, and normal CI. - Add a weekly GitHub Actions workflow with
workflow_dispatchfor online lychee checks. - Use
GITHUB_TOKENwithout logging it, and configure bounded timeouts, retries, concurrency, and request interval. - Upload a readable failure report with documented artifact retention.
- Document the advisory status and triage procedure: re-run once; fix a persistently broken URL or add a narrow documented exclusion when justified.
Acceptance criteria
torrust/torrust-linting#3is complete and the selected shared-linter version supports this repository'slychee.tomlconvention.linter allruns deterministic offline local Markdown file and fragment validation in pre-commit and normal CI.- A scheduled workflow runs online external-link checks weekly and through
workflow_dispatch. - The scheduled workflow is not required for PR merges; lychee failures remain visible rather than hidden by
continue-on-error. - The workflow uses
GITHUB_TOKENsecurely, has bounded requests, and retains a readable report artifact. - The repository documents the external-link failure triage procedure.
Activity
Merge #2165: docs(links): add lychee local link-check baseline (#2150)
ci(links): enforce local checks and monitor external links (#2162)
Merge torrust#2172: ci(links): enforce local checks and monitor exter…
Merge #2182: docs(links): record hosted validation evidence
chore(issues): archive closed issue specs torrust#1586, torrust#1588, t…
chore(issues): archive closed issue specs torrust#1586, torrust#1588, t…
Merge #2207: chore(issues): archive closed issue specifications