mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 04:20:24 +00:00
generate docs
This commit is contained in:
parent
c5b2d11878
commit
b0f155c6fd
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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
22
ci/after_success.sh
Normal 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
|
@ -6,4 +6,6 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
if [ $TRAVIS_BRANCH != master ]; then
|
||||
main
|
||||
fi
|
||||
|
@ -16,4 +16,6 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
if [ $TRAVIS_BRANCH != master ]; then
|
||||
main
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user