We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6319193 commit be5423dCopy full SHA for be5423d
doc/build.sh
@@ -67,6 +67,9 @@ fi
67
echo
68
echo 'Testing for broken links'
69
70
+problematic_urls='
71
+https://www.gnu.org/licenses/agpl-3.0.html
72
+'
73
pushd "$BUILDROOT" >/dev/null
74
WEBSITE='https://kernc\.github\.io/backtesting\.py'
75
grep -PR '<a .*?href=' |
@@ -95,7 +98,10 @@ print(html.unescape(unquote(sys.argv[-1])))' "$url")"
95
98
if [ -f "$target_file" ]; then continue; fi
96
99
97
100
url="${url// /%20}"
- curl --silent --fail --retry 5 --retry-delay 5 --user-agent 'Mozilla/5.0 Firefox 101' "$url" >/dev/null 2>&1 ||
101
+ echo "$url"
102
+ curl --silent --fail --retry 2 --retry-delay 2 --connect-timeout 10 \
103
+ --user-agent 'Mozilla/5.0 Firefox 128' "$url" >/dev/null 2>&1 ||
104
+ grep -qF "$url" <(echo "$problematic_urls") ||
105
die "broken link in $file: $url"
106
done
107
0 commit comments