From 18afb58b3616d5092e4aaf0a750ce23dc6e70823 Mon Sep 17 00:00:00 2001 From: "Ian Y. Choi" Date: Tue, 5 Apr 2016 02:35:44 +0900 Subject: [PATCH] Cleanup translation script for Upstream training It also enables to publish translations on git.rst. Modification is like https://review.openstack.org/#/c/300067 . Change-Id: I5d8828270f84bfd222d3bc930d92d0928a6d89b8 --- tools/buildlang.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/buildlang.sh b/tools/buildlang.sh index 1b34bfc3..111786fa 100755 --- a/tools/buildlang.sh +++ b/tools/buildlang.sh @@ -31,8 +31,7 @@ sphinx-build -j $NUMBER_OF_CORES -b slides -b gettext ${DIRECTORY}/source/ \ ${DIRECTORY}/source/locale/ # build upstream landing page index.html sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/ \ - ${DIRECTORY}/source/locale/ \ - ${DIRECTORY}/index.rst ${DIRECTORY}/upstream-details.rst + ${DIRECTORY}/source/locale/ # check all language translation resouce for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do @@ -73,8 +72,7 @@ for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do # build upstream landing page index.html sphinx-build -j $NUMBER_OF_CORES -b html -D language=${language} \ -d "${DIRECTORY}/build/slides.doctrees" \ - ${DIRECTORY}/ ${DIRECTORY}/build/slides/ \ - ${DIRECTORY}/index.rst ${DIRECTORY}/upstream-details.rst + ${DIRECTORY}/ ${DIRECTORY}/build/slides/ # move built guide to publish directory mkdir -p publish-docs/${language}/${DOCNAME}/