Skip to content

Reduce link checker noise and fix broken DOI (#906)#915

Merged
mmcky merged 1 commit into
mainfrom
fix/linkcheck-noise-and-doi
Jun 18, 2026
Merged

Reduce link checker noise and fix broken DOI (#906)#915
mmcky merged 1 commit into
mainfrom
fix/linkcheck-noise-and-doi

Conversation

@mmcky

@mmcky mmcky commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Triage of the weekly link checker report (#906). It reported 241 errors, but ~237 were noise from how lychee is invoked. This PR removes that noise and fixes the one genuine issue.

Breakdown of #906

Bucket Count Real?
Root-relative links /_notebooks/*.ipynb + /_pdf/quantecon-python.pdf (2 per lecture page) ~234 ❌ config
file://…/None artifacts on generated pages (genindex, prf-prf, search) 3 ❌ generated
External links in two_auctions / zreferences 4 ⚠️ mostly false positives

I verified the four external links with live requests:

  • chekuri.cs.illinois.edu/.../Notes20.pdf200 (the 415 was HEAD/accept-header handling)
  • s2.smu.edu/tsalmon/auctions.pdf200 (the network error was transient in CI)
  • doi.org/10.3905/jod.2012.20.1.038 → valid DOI, just 302s into a paywalled login
  • doi.org/10.2307/1805228genuine 404 — unregistered at doi.org

Changes

1. linkcheck.yml — pass --root-dir. Lychee runs against the gh-pages checkout with no root directory, so every root-relative link (/_notebooks/…, /_pdf/…) errors with "To resolve root-relative links in local files, provide a root dir". Those files exist in the build; --root-dir ${{ github.workspace }} resolves them locally, eliminating ~234 of the 241 errors and leaving future reports as signal.

2. quant-econ.bib — drop the broken DOI. The GrossmanStiglitz1980 entry's DOI 10.2307/1805228 is unregistered (real 404). Crossref has no registered DOI for the original 1980 AER article, so the doi field is removed; the citation (author/title/journal/year/vol/pages) remains complete.

Note on QuantEcon/actions

I also checked whether the shared linkchecker in QuantEcon/actions is ready to migrate to — it is not built yet. It exists only as a proposal in docs/FUTURE-DEVELOPMENT.md and is marked "out of scope (standalone)" in PLAN.md. When that wrapper is built, it should bake in --root-dir/base-URL handling and exclusion patterns so this noise does not recur.

🤖 Generated with Claude Code

The weekly link checker report (#906) flagged 241 "errors", but ~237
were noise:

- ~234 root-relative links (/_notebooks/*.ipynb and
  /_pdf/quantecon-python.pdf, two per lecture page) that lychee could
  not resolve because no root directory was provided. These files do
  exist in the gh-pages build. Pass --root-dir so they resolve to the
  checkout instead of erroring.
- The remaining external "errors" were false positives (HEAD/accept
  handling, a transient network failure, and a paywalled DOI redirect).

The one genuine issue was the GrossmanStiglitz1980 bib entry, whose
DOI 10.2307/1805228 is unregistered at doi.org (real 404). There is no
registered replacement DOI for the original 1980 AER article, so drop
the doi field; the citation remains complete.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 18, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces noise in the weekly Lychee link-check workflow (so root-relative links in the built site resolve locally) and removes a broken DOI from the project bibliography to eliminate a genuine external 404.

Changes:

  • Update the link checker workflow to pass --root-dir ${{ github.workspace }} so root-relative links like /_notebooks/... and /_pdf/... resolve against the gh-pages checkout.
  • Remove the unregistered/broken DOI (10.2307/1805228) from the GrossmanStiglitz1980 BibTeX entry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/linkcheck.yml Adds --root-dir to Lychee args to resolve root-relative links locally and reduce false-positive failures.
lectures/_static/quant-econ.bib Removes a broken DOI field from a bibliography entry to prevent link-check 404s while keeping the citation complete.

@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-915--sunny-cactus-210e3e.netlify.app

Commit: 58f351a

📚 Changed Lectures


Build Info

@mmcky mmcky added the ready label Jun 18, 2026
@mmcky mmcky merged commit 6a0e2ce into main Jun 18, 2026
2 checks passed
@mmcky mmcky deleted the fix/linkcheck-noise-and-doi branch June 18, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants