Browse Source

Do not publish doctrees for translated guides

As done for RST building, do not publish doctrees for translated guides,
place them instead outside of the build directory.

Change-Id: Ia24b95f896e831cb4408112cdae6fb94c07da367
changes/28/245528/2
Andreas Jaeger 5 years ago
parent
commit
67d94fe198
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      bin/doc-tools-check-languages

+ 14
- 4
bin/doc-tools-check-languages View File

@ -88,9 +88,12 @@ function build_rst {
if [ ${book} = "firstapp" ] ; then
# Firstapp has several variations, build all of them
for tag in libcloud dotnet fog openstacksdk pkgcloud shade; do
BUILD_DIR="${DOC_DIR}${book}/build-${tag}/html"
DOCTREES="${BUILD_DIR}.doctrees"
tox -evenv "sphinx-build -j $NUMBER_OF_CORES -q -E -t $tag -D language=${language} \
-d ${DOCTREES}
${DOC_DIR}${book}/source/ \
${DOC_DIR}${book}/build-${tag}/html"
${BUILD_DIR}"
mkdir -p publish-docs/${language}/${book}-${tag}
rsync -a ${DOC_DIR}${book}/build-${tag}/html/ \
publish-docs/${language}/${book}-${tag}
@ -146,9 +149,13 @@ function build_rst {
fi
# Build the guide
BUILD_DIR="${DOC_DIR}${book}/build-${tag}/html"
DOCTREES="${BUILD_DIR}.doctrees"
tox -evenv "sphinx-build -j $NUMBER_OF_CORES -q -E -t $tag \
-D language=${language} ${DOC_DIR}${book}/source/ \
${DOC_DIR}${book}/build-${tag}/html"
-D language=${language}
-d ${DOCTREES}
${DOC_DIR}${book}/source/ \
${BUILD_DIR}"
mkdir -p publish-docs/${language}/${book}-${tag}
rsync -a ${DOC_DIR}${book}/build-${tag}/html/ \
publish-docs/${language}/${book}-${tag}
@ -162,9 +169,12 @@ function build_rst {
fi
done
else
BUILD_DIR="${DOC_DIR}${book}/build/html"
DOCTREES="${BUILD_DIR}.doctrees"
tox -evenv "sphinx-build -j $NUMBER_OF_CORES -q -E -D language=${language} \
-d ${DOCTREES} \
${DOC_DIR}${book}/source/ \
${DOC_DIR}${book}/build/html"
${BUILD_DIR}"
mkdir -p publish-docs/${language}/${book}/
rsync -a ${DOC_DIR}${book}/build/html/ publish-docs/${language}/${book}/
fi


Loading…
Cancel
Save