From 6bd9067c42d4d5a69a1cf816c69cd62f4198aee2 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 3 Aug 2026 20:23:30 +1000 Subject: [PATCH] Pin the link checker to v1 and declare known false positives --- .github/workflows/linkcheck.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index ff91e585..929e76c2 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -32,10 +32,25 @@ jobs: mkdir -p _site curl -fsSL "${{ steps.release.outputs.asset-url }}" | tar -xzf - -C _site - name: AI-Powered Link Checker - uses: QuantEcon/action-link-checker@main + uses: QuantEcon/action-link-checker@v1 with: html-path: '_site' fail-on-broken: 'false' silent-codes: '403,503' ai-suggestions: 'true' create-issue: 'true' + # Known false positives. The first five mirror the linkcheck_ignore + # list in lectures/_config.yml, which Sphinx reads and this checker + # cannot see; keep the two in step. FRED throttles datacenter IP + # ranges, so it times out from a runner while serving readers fine. + # + # Deliberately NOT listed: the quantecon.org and ideas.repec.org + # links currently reported are real 404s and want fixing in the + # source, not suppressing here. + ignore-patterns: | + https://doi\.org/10\.3982/ECTA8070 + https://doi\.org/10\.1086/261749 + https://doi\.org/10\.1086/262078 + https://keras\.io/ + https://data\.oecd\.org/ + https://fred\.stlouisfed\.org