Skip to content

Commit

Permalink
Use rust-lang/rust linkchecker on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Feb 21, 2020
1 parent 8d4db3e commit d1a0040
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
- job: docs
pool:
vmImage: ubuntu-16.04
variables:
TOOLCHAIN: nightly
steps:
- template: ci/azure-install-rust.yml
- bash: |
Expand All @@ -105,5 +107,11 @@ jobs:
displayName: "Build documentation"
- bash: cd src/doc && mdbook build --dest-dir ../../target/doc
displayName: "Build mdbook documentation"
variables:
TOOLCHAIN: stable
- bash: |
set -e
rustup component add rust-docs
cd src/doc
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all cargo
displayName: "Check for broken links"

0 comments on commit d1a0040

Please sign in to comment.