generate docs

This commit is contained in:
Jorge Aparicio 2018-04-23 19:54:46 +02:00
parent c5b2d11878
commit b0f155c6fd
6 changed files with 34 additions and 4 deletions

View File

@ -21,6 +21,9 @@ script:
after_script: set +e
after_success:
- bash ci/after_success.sh
cache: cargo
before_cache:
@ -29,6 +32,7 @@ before_cache:
branches:
only:
- master
- staging
- trying

View File

@ -8,7 +8,7 @@ categories = [
"no-std",
]
description = "`static` friendly data structures that don't require dynamic memory allocation"
documentation = "https://docs.rs/heapless"
documentation = "https://japaric.github.io/heapless/heapless/index.html"
keywords = [
"static",
"no-heap",

View File

@ -5,7 +5,7 @@
> `static` friendly data structures that don't require dynamic memory allocation
# [Documentation](https://docs.rs/heapless)
# [Documentation](https://japaric.github.io/heapless/heapless/index.html)
# [Change log](CHANGELOG.md)

22
ci/after_success.sh Normal file
View File

@ -0,0 +1,22 @@
set -euxo pipefail
main() {
if [ $TARGET != x86_64-unknown-linux-gnu && $TRAVIS_BRANCH != master ]; then
return
fi
cargo doc
mkdir ghp-import
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz | \
tar --strip-components 1 -C ghp-import -xz
./ghp-import/ghp_import.py target/doc
set +x
git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && \
echo OK
}
main

View File

@ -6,4 +6,6 @@ main() {
fi
}
main
if [ $TRAVIS_BRANCH != master ]; then
main
fi

View File

@ -16,4 +16,6 @@ main() {
fi
}
main
if [ $TRAVIS_BRANCH != master ]; then
main
fi