diff --git a/.travis.yml b/.travis.yml index ca723f04..1bd60c2e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,12 @@ script: before_deploy: - make linkcheck + # only deploy the latest tagged release of Simplified Chinese docs - tar -zcvf clearlinux-docs-zh-CN.tar.gz -C source/_build/html/zh_CN . + - wget https://github.com/clearlinux/clear-linux-documentation/releases/latest/download/clearlinux-docs-zh-CN.tar.gz + - mkdir source/_build/html/zh_CN + # compress current build of Simplified Chinese in case of tagged build + - tar xvzf clearlinux-docs-zh-CN.tar.gz -C source/_build/zh_CN deploy: - provider: pages diff --git a/source/Makefile b/source/Makefile index c30a7ebb..444ea7fe 100644 --- a/source/Makefile +++ b/source/Makefile @@ -56,7 +56,7 @@ clean: htmlall: $(SPHINXBUILD) -b html $(ERROROPTS) $(ALLSPHINXOPTS) $(BUILDDIR)/html - $(SPHINXBUILD) -b html $(ERROROPTS) -D language='zh_CN' $(ALLSPHINXOPTS) $(BUILDDIR)/html/zh_CN + $(SPHINXBUILD) -b html $(ERROROPTS) -D language='zh_CN' $(ALLSPHINXOPTS) $(BUILDDIR)/zh_CN htmlde: $(SPHINXBUILD) -b html -D language='de' $(ALLSPHINXOPTS) $(BUILDDIR)/html/de