Fix linkcheck false positives for FRED (timeout) and update redirect URLs#518
Draft
Fix linkcheck false positives for FRED (timeout) and update redirect URLs#518
Conversation
Agent-Logs-Url: https://github.com/QuantEcon/lecture-python-programming/sessions/8a6e4510-8df2-4151-b0d3-70fae4b338e3 Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
…-8 handling Agent-Logs-Url: https://github.com/QuantEcon/lecture-python-programming/sessions/8a6e4510-8df2-4151-b0d3-70fae4b338e3 Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix broken links found in documentation
Fix linkcheck false positives for FRED (timeout) and update redirect URLs
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The automated link checker was reporting 2 broken links (FRED timeout) and 2 redirects (mypy, JAX) on every scheduled run.
Changes
Redirects already resolved:
python_advanced_features.mdalready uses the final destination URLs (https://mypy.readthedocs.io/en/stable/,https://docs.jax.dev/en/latest/) — no content changes needed.FRED false positive fix (
linkcheck.yml): Added a pre-processing step before the link checker runs that neutralisesfred.stlouisfed.orghrefs →href="#". FRED actively blocks automated crawlers, so these timeouts are false positives. The skip list is driven by aSKIP_DOMAINSenv var for easy extension:This mirrors the existing
linkcheck_ignore: ['https://fred.stlouisfed.org/.*']already present inlectures/_config.ymlfor Sphinx's built-in checker.