Skip to content

Commit 16d7b32

Browse files
committed
Re-enable target-specific docs
1 parent 863d703 commit 16d7b32

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ matrix:
1414
- name: "Documentation"
1515
env: TARGET=x86_64-unknown-linux-gnu
1616
script: sh ci/dox.sh
17-
install: true
17+
install:
18+
- travis_retry rustup component add rust-src
19+
- travis_retry cargo install xargo
1820
stage: tools-and-build-and-tier1
1921
- name: "Shellcheck"
2022
install: true

ci/dox.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ printf '### Platform-specific documentation\n' >> $PLATFORM_SUPPORT
2727
while read -r target; do
2828
echo "documenting ${target}"
2929

30-
#rustdoc -o "$TARGET_DOC_DIR/${target}" --target "${target}" src/lib.rs --cfg cross_platform_docs \
31-
# --crate-name libc
30+
xargo doc --target "${target}" \
31+
--no-default-features --features extra_traits
32+
33+
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
3234

3335
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
3436
done < targets

0 commit comments

Comments
 (0)