Re-enable target-specific docs

This commit is contained in:
gnzlbg 2019-02-20 13:11:30 +01:00
parent 863d703910
commit 7017701b21
2 changed files with 8 additions and 3 deletions

View file

@ -14,7 +14,9 @@ matrix:
- name: "Documentation"
env: TARGET=x86_64-unknown-linux-gnu
script: sh ci/dox.sh
install: true
install:
- travis_retry rustup component add rust-src
- travis_retry cargo install xargo
stage: tools-and-build-and-tier1
- name: "Shellcheck"
install: true

View file

@ -27,8 +27,11 @@ printf '### Platform-specific documentation\n' >> $PLATFORM_SUPPORT
while read -r target; do
echo "documenting ${target}"
#rustdoc -o "$TARGET_DOC_DIR/${target}" --target "${target}" src/lib.rs --cfg cross_platform_docs \
# --crate-name libc
rustup target add "${target}" || true
xargo doc --target "${target}" \
--no-default-features --features extra_traits
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
done < targets