From cc56d56ee9c3f1f886ee3a171726a6adb3bd9a67 Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Mon, 9 Sep 2019 13:36:27 -0700 Subject: [PATCH] * Master is now deploying only the latest tagged release of simplified Chinese into /source/_build/html/zh_CN. * Both Chinese and English are built for error checking purposes only (parallel dirs /source/_build/html and /source/_build/zh_CN). * Next stage will be to move building of simplified Chinese to https://github.com/clearlinux/clear-linux-documentation-zh-CN only and use latest release from that repo. Signed-off-by: Kevin Putnam --- .travis.yml | 5 +++++ source/Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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