From ff3cfac6bbbfc9093df4bbe246ade18f8d3523e5 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 17 Sep 2019 09:55:05 +0200 Subject: [PATCH] www: fix book placement --- ci/after-success.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ci/after-success.sh b/ci/after-success.sh index dc3545d4b0..e18cbb159b 100644 --- a/ci/after-success.sh +++ b/ci/after-success.sh @@ -11,17 +11,16 @@ main() { local td=$(mktemp -d) # build latest docs - mkdir $td/$latest + mkdir -p $td/$latest/book/ cp -r target/doc $td/$latest/api sed 's|URL|rtfm/index.html|g' redirect.html > $td/$latest/api/index.html - mkdir $td/book/ sed 's|URL|0.5|g' redirect.html > $td/index.html sed 's|URL|book/en|g' redirect.html > $td/$latest/index.html for lang in ${langs[@]}; do ( cd book/$lang && mdbook build ) - cp -r book/$lang/book $td/book/$lang - cp LICENSE-* $td/book/$lang/ + cp -r book/$lang/book $td/$latest/book/$lang + cp LICENSE-* $td/$latest/book/$lang/ done local root=$(pwd)