diff --git a/README.md b/README.md index 1e66421..c6cc589 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,13 @@ cargo test Please refer to the [`cargo` documentation](https://doc.rust-lang.org/stable/cargo/) for more detailed instructions. +### Building the docs + +We build docs with the nightly toolchain, you may wish to use the following +shell alias to check your documentation changes build correctly. + +```alias build-docs='RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links'``` + ## Pull Requests Every PR needs at least two reviews to get merged. During the review phase diff --git a/contrib/test.sh b/contrib/test.sh index 3a276fb..4031b87 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -56,7 +56,7 @@ done # Build the docs if told to (this only works with the nightly toolchain) if [ "$DO_DOCS" = true ]; then - RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES" + RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links fi # Fuzz if told to diff --git a/src/lib.rs b/src/lib.rs index 96bc90e..afdc51a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,7 +57,6 @@ #![deny(unused_imports)] #![deny(missing_docs)] #![deny(unused_must_use)] -#![deny(broken_intra_doc_links)] #[cfg(not(any(feature = "std", feature = "no-std")))] compile_error!("at least one of the `std` or `no-std` features must be enabled");