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
This commit is contained in:
parent
2847663534
commit
18afb58b36
@ -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}/
|
||||
|
Loading…
x
Reference in New Issue
Block a user