Skip to content

Commit d1a0040

Browse files
committed
Use rust-lang/rust linkchecker on CI.
1 parent 8d4db3e commit d1a0040

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

azure-pipelines.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
- job: docs
9494
pool:
9595
vmImage: ubuntu-16.04
96+
variables:
97+
TOOLCHAIN: nightly
9698
steps:
9799
- template: ci/azure-install-rust.yml
98100
- bash: |
@@ -105,5 +107,11 @@ jobs:
105107
displayName: "Build documentation"
106108
- bash: cd src/doc && mdbook build --dest-dir ../../target/doc
107109
displayName: "Build mdbook documentation"
108-
variables:
109-
TOOLCHAIN: stable
110+
- bash: |
111+
set -e
112+
rustup component add rust-docs
113+
cd src/doc
114+
curl -sSLo linkcheck.sh \
115+
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
116+
sh linkcheck.sh --all cargo
117+
displayName: "Check for broken links"

0 commit comments

Comments
 (0)