Auto-generate an index
This commit is contained in:
parent
0de482ca8a
commit
dab1ead5fa
10
ci/dox.sh
10
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
|
||||
|
7
ci/landing-page-footer.html
Normal file
7
ci/landing-page-footer.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
4
ci/landing-page-head.html
Normal file
4
ci/landing-page-head.html
Normal file
@ -0,0 +1,4 @@
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1 +0,0 @@
|
||||
hello!
|
Loading…
Reference in New Issue
Block a user