Skip to content

Commit ae72a4a

Browse files
Replace linkcheck ignore with custom user agent (#262)
* Replace linkcheck ignore with custom user agent This at least allows the check to proceed. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3eab46f commit ae72a4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ bibtex_bibfiles:
8989

9090
sphinx:
9191
config:
92-
linkcheck_ignore:
93-
- https://docs.github.com
92+
linkcheck_request_headers:
93+
'https://docs.github.com/':
94+
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0
9495
html_favicon: images/icons/favicon.ico
9596
html_last_updated_fmt: '%-d %B %Y'
9697
html_theme: sphinx_pythia_theme

0 commit comments

Comments
 (0)