diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index f3935c5af8..2fb328db32 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -33,7 +33,9 @@ jobs: - checkout: self submodules: true - template: ci/azure-install-rust.yml - - script: cargo doc + - script: | + cargo doc --all --exclude cranelift-codegen-meta + cargo doc --package cranelift-codegen-meta --document-private-items displayName: Build documentation - script: cargo install cargo-deadlinks displayName: Install cargo-deadlinks diff --git a/cranelift/test-all.sh b/cranelift/test-all.sh index d3ad831274..fb9f6578d7 100755 --- a/cranelift/test-all.sh +++ b/cranelift/test-all.sh @@ -69,14 +69,16 @@ ensure_installed() { # Make sure the documentation builds. banner "Rust documentation: $topdir/target/doc/cranelift/index.html" if has_toolchain nightly; then - cargo +nightly doc + cargo +nightly doc --all --exclude cranelift-codegen-meta + cargo +nightly doc --package cranelift-codegen-meta --document-private-items # Make sure the documentation doesn't have broken links. banner "Rust documentation link test" ensure_installed cargo-deadlinks find ./target/doc -maxdepth 1 -type d -name "cranelift*" | xargs -I{} cargo deadlinks --dir {} else - cargo doc + cargo doc --all --exclude cranelift-codegen-meta + cargo doc --package cranelift-codegen-meta --document-private-items echo "nightly toolchain not found, some documentation links will not work" fi