From 7ecc95f0232da4cd79c80196723bcd97007da023 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 17 Sep 2018 22:38:25 -0500 Subject: [PATCH] gdi --- ci/book.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/book.sh b/ci/book.sh index 2f0091b..1c9d5e0 100755 --- a/ci/book.sh +++ b/ci/book.sh @@ -17,7 +17,8 @@ fi # of the guide at the same time (See #165) # This builds the book in target/doc/guide. See https://github.com/rust-lang-nursery/mdBook/issues/698 -mdbook build -d ../target/doc/guide +mkdir -p ../target/doc +mdbook build -d ../target/doc/book # Get the lastest tag across all branches # https://stackoverflow.com/a/7261049/3549270 @@ -31,7 +32,7 @@ echo "" > index.html # For builds triggered by a tag, $TRAVIS_BRANCH will be set to the tag rm -rf "$TRAVIS_BRANCH" -cp -r ../target/doc/guide "$TRAVIS_BRANCH" +cp -r ../target/doc/book "$TRAVIS_BRANCH" git add --all git commit -m "Upload documentation for $TRAVIS_BRANCH"