Skip to content

Fix link checker accepted status codes and base URL#736

Open
Zhengyizhe0209-arch wants to merge 1 commit into
QuantEcon:mainfrom
Zhengyizhe0209-arch:patch-1
Open

Fix link checker accepted status codes and base URL#736
Zhengyizhe0209-arch wants to merge 1 commit into
QuantEcon:mainfrom
Zhengyizhe0209-arch:patch-1

Conversation

@Zhengyizhe0209-arch
Copy link
Copy Markdown

Summary

This pull request updates the link checker configuration used by the scheduled workflow.

In issue #734, many successful 200 OK responses are reported as rejected status codes. This appears to be related to the current --accept 403,503 setting, which is too restrictive for normal successful HTTP responses.

The report also includes errors for root-relative links such as /_notebooks/... and /_pdf/..., which cannot be converted into URLs when checking local HTML files. This PR adds a base URL so that these links can be resolved against the deployed site.

Changes

  • Accept normal successful HTTP responses with 200..=299.
  • Keep the existing accepted 403 and 503 status codes.
  • Add --base-url https://intro.quantecon.org to resolve root-relative links.

Addresses #734.

Accept normal 2xx responses and resolve root-relative links against the deployed site.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit b8da6f4
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a05fcfa1e6b52000895329f
😎 Deploy Preview https://deploy-preview-736--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mmcky mmcky requested a review from Copilot May 14, 2026 23:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the scheduled link-checking workflow configuration to (1) treat normal successful HTTP responses as acceptable and (2) correctly resolve root-relative links found in locally checked HTML files by providing a deployment base URL.

Changes:

  • Expand accepted HTTP status codes to include 200..=299 (while keeping 403 and 503).
  • Add --base-url https://intro.quantecon.org so root-relative links (e.g., /_pdf/...) can be resolved during checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants