Skip to content

Commit ade888e

Browse files
committed
Check for broken links in CI
Add `-- -D rustdoc::broken-intra-doc-links` to the docs build in CI to check for broken links. In order to use this flag use `cargo rustdoc` instead of `cargo doc`.
1 parent e3f6d23 commit ade888e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464

6565
# Build the docs if told to (this only works with the nightly toolchain)
6666
if [ "$DO_DOCS" = true ]; then
67-
RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES"
67+
RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links
6868
fi
6969

7070
# Webassembly stuff

0 commit comments

Comments
 (0)