Skip to content

Add config to ignore status codes for certain URLs#14299

Open
lpsinger wants to merge 2 commits intosphinx-doc:masterfrom
lpsinger:linkcheck_ignore_status_codes
Open

Add config to ignore status codes for certain URLs#14299
lpsinger wants to merge 2 commits intosphinx-doc:masterfrom
lpsinger:linkcheck_ignore_status_codes

Conversation

@lpsinger
Copy link

Purpose

Add config to ignore status codes for certain URLs. This is useful, for example, for sites that send a 403 response to non-browser agents.

Fixes #9761, using the approach suggested in
https://github.com/sphinx-doc/sphinx/pull/9762/changes#r735466375.

This was prompted by my own need to ignore 403 responses in one of my own documentation projects; see
https://git.ligo.org/emfollow/userguide/-/blob/5670601f1c47ae228b49ff658531126d785b017a/conf.py#L282-306.

References

This is useful, for example, for sites that send a 403 response to
non-browser agents.

Fixes sphinx-doc#9761, using the approach suggested in
https://github.com/sphinx-doc/sphinx/pull/9762/changes#r735466375.

This was prompted by my own need to ignore 403 responses in one of
my own documentation projects; see
https://git.ligo.org/emfollow/userguide/-/blob/5670601f1c47ae228b49ff658531126d785b017a/conf.py#L282-306.
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.

Allow 403: Forbidden as acceptable in linkcheck

1 participant