build dev docs with html root url provided for typenum and bytemuck

This commit is contained in:
Trevor Spiteri 2021-04-21 13:43:06 +02:00
parent 6d13c707aa
commit e0f99c4713
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ pages:
- rustup toolchain install --profile minimal nightly-$TARGET
- rm -rf public
- mkdir public
- cargo +nightly-$TARGET doc --no-deps --features "bytemuck num-traits serde std"
# TODO: use this when bytemuck and typenum are released with html-root-url attribute set
# - cargo +nightly-$TARGET doc --no-deps --features "bytemuck num-traits serde std"
- cargo +nightly-$TARGET rustdoc --features "bytemuck num-traits serde std" -- -Z unstable-options --extern-html-root-url typenum=https://docs.rs/typenum/^1.10 --extern-html-root-url bytemuck=https://docs.rs/bytemuck/^1.2
- mv target/doc public/dev
- bash etc/gen-doc-index.sh
artifacts: