mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +01:00
build mdbook
This commit is contained in:
parent
91cefa8e2f
commit
88eb6bc6a2
@ -40,9 +40,8 @@ after_success:
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||
cargo doc --features alpn --no-deps &&
|
||||
echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
|
||||
wget https://github.com/rust-lang-nursery/mdBook/releases/download/0.0.21/mdBook-0.0.21-x86_64-unknown-linux-gnu.tar.gz &&
|
||||
tar xzf mdBook-0.0.21-x86_64-unknown-linux-gnu.tar.gz &&
|
||||
cd guide && ../mdbook build -d ../target/doc/guide && cd .. &&
|
||||
cargo install mdbook &&
|
||||
cd guide && mdbook build -d ../target/doc/guide && cd .. &&
|
||||
git clone https://github.com/davisp/ghp-import.git &&
|
||||
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
||||
echo "Uploaded documentation"
|
||||
|
Loading…
Reference in New Issue
Block a user