Skip to content

Commit

Permalink
ignore more
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Jun 23, 2024
1 parent c7c76f7 commit f34e7a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ linkcheck: docs/_build/html/index.html
{ jq -s . $(<D)/output.json > $(<D)/output2.json && mv $(<D)/output2.json $(<D)/output.json; \
jq -r '.[] |select(.status == "broken") |.uri' $(<D)/output.json > $(<D)/broken.txt; echo; echo; \
echo "======================= output.txt ======================="; sort $(<D)/output.txt; \
echo "=========================================================="; exit $$ret; }
echo "=========================================================="; echo; echo; exit $$ret; }

## Misc

Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@


# Linkcheck settings.
user_agent = "Mozilla 5.0"
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
linkcheck_allowed_redirects = {
r"https://www.amazon.com/": "https://www.amazon.com/[^/]+/dp/",
r"https://www.apc.com/us/en/product/\w+$": "https://www.apc.com/us/en/product/",
Expand All @@ -110,10 +110,11 @@
]
linkcheck_ignore = [
r"[/.]*genindex.html", # TODO remove this
r"https://[\w.]*mibsolution.one/#",
r"https://[\w.]*mibsolution.one/",
r"https://media.vw.com/", # All curls result in 403
r"https://mega.nz/(file|folder)/\w+#",
r"https://parts.vw.com/", # Nondeterministic rate limiting in GitHub runner
r"https://www.apc.com/",
r"https://www.ecstuning.com/", # All curls result in 403
r"https://www.qnx.com/developers/docs/[\w.]+/#",
r"https?://192.168.\d+.\d+/",
Expand Down

0 comments on commit f34e7a2

Please sign in to comment.