summaryrefslogtreecommitdiff
path: root/ci/dox.sh
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-09-17 09:52:21 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-09-17 09:52:21 -0700
commitdab1ead5faeeba7b3c085cc3de22b38677150120 (patch)
treeb77e3edf2b0b5941ef1dac8d5859617783dcd075 /ci/dox.sh
parent0de482ca8a125b6f9a653f80e1d57228d47170cd (diff)
downloadrust-libc-dab1ead5faeeba7b3c085cc3de22b38677150120.tar.gz
Auto-generate an index
Diffstat (limited to 'ci/dox.sh')
-rw-r--r--ci/dox.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/ci/dox.sh b/ci/dox.sh
index 615aacdd25..5450088cc6 100644
--- a/ci/dox.sh
+++ b/ci/dox.sh
@@ -5,10 +5,16 @@ set -e
rm -rf target/doc
mkdir -p target/doc
+cp ci/landing-page-head.html target/doc/index.html
+
doc() {
local _target=$1
echo documenting $_target
- rustdoc -o target/doc/$_target --target $_target src/lib.rs --cfg dox
+ rustdoc -o target/doc/$_target --target $_target src/lib.rs --cfg dox \
+ --crate-name libc
+
+ echo "<li><a href="$_target/libc/index.html">$_target</a></li>" \
+ >> target/doc/index.html
}
doc x86_64-unknown-linux-gnu
@@ -25,7 +31,7 @@ doc mips-unknown-linux-gnu
doc arm-linux-androideabi
doc x86_64-unknown-linux-musl
-cp ci/landing-page.html target/doc/index.html
+cat ci/landing-page-footer.html >> target/doc/index.html
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "autotest" ]; then
pip install ghp-import --user $USER