From 8307ad3f3b206fde6beccfc706c588e20f02bcc1 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 31 Oct 2019 08:50:53 -0700 Subject: [PATCH] Build documentation with private items in cranelift-codegen/meta --- .azure-pipelines.yml | 4 +++- cranelift/test-all.sh | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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