diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-09-15 19:41:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-15 19:41:50 +0000 |
| commit | 7039f6291119db96c330f0f57a90cfc16d91cf04 (patch) | |
| tree | 293ad9e4e449af287c11ee53e61de4aa8bd9f705 /ci/after-success.sh | |
| parent | c14f7d1ce90ad4957801336cefe65b7fa82fe63f (diff) | |
| parent | a593e49a3ec6736065333efc0254ee4c44eaa45d (diff) | |
Merge pull request #239 from japaric/fix-things
fix redirects and CNAME
Diffstat (limited to 'ci/after-success.sh')
| -rw-r--r-- | ci/after-success.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ci/after-success.sh b/ci/after-success.sh index 3aaa834..6deea86 100644 --- a/ci/after-success.sh +++ b/ci/after-success.sh @@ -11,8 +11,10 @@ main() { # build latest docs cp -r target/doc $td/api + sed 's|URL|rtfm/index.html|g' redirect.html > $td/api/index.html + mkdir $td/book/ - cp redirect.html $td/index.html + sed 's|URL|book/en|g' redirect.html > $td/index.html for lang in ${langs[@]}; do ( cd book/$lang && mdbook build ) cp -r book/$lang/book $td/book/$lang @@ -30,16 +32,21 @@ main() { pushd $src cargo doc || cargo doc --features timer-queue cp -r target/doc $td/$prefix/api + sed 's|URL|rtfm/index.html|g' redirect.html > $td/$prefix/api/index.html for lang in ${langs[@]}; do ( cd book/$lang && mdbook build ) cp -r book/$lang/book $td/$prefix/book/$lang cp LICENSE-* $td/$prefix/book/$lang/ done + sed 's|URL|book/en|g' redirect.html > $td/$prefix/index.html popd rm -rf $src done + # forward CNAME file + cp CNAME $td/ + mkdir ghp-import curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz | tar --strip-components 1 -C ghp-import -xz |
