Use rust-lang/rust linkchecker on CI.

This commit is contained in:
Eric Huss 2020-02-21 09:23:10 -08:00
parent 6fb3705e52
commit 6af7cbcd08
1 changed files with 6 additions and 0 deletions

View File

@ -17,3 +17,9 @@ for file in src/*.md ; do
echo Checking references in $file
cargo run --quiet --bin link2print < $file > /dev/null
done
echo 'Checking for broken links...'
rustup toolchain install nightly -c rust-docs --profile=minimal
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
# Cannot use --all here because of the generated redirect pages aren't available.
sh linkcheck.sh book