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`.
This commit is contained in:
Tobin C. Harding 2022-11-17 09:45:21 +11:00
parent e3f6d23b49
commit ade888e922
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ fi
# Build the docs if told to (this only works with the nightly toolchain) # Build the docs if told to (this only works with the nightly toolchain)
if [ "$DO_DOCS" = true ]; then if [ "$DO_DOCS" = true ]; then
RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES" RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links
fi fi
# Webassembly stuff # Webassembly stuff