Properly pass arguments for language building
Do not give sphinx-build as single argument, split it up. tox 2.5.0 currently complains that it cannot find "sphinx-build arg1 arg2" - so, pass this properly now. Add releasenote for this. Change-Id: I5da1d06866c16a8c56be23e87817d163b28803a8
This commit is contained in:
parent
3fdbbc3613
commit
99c3a4d777
@ -42,8 +42,8 @@ function build_rst {
|
||||
LOCALE_DIR="${DOC_DIR}${book}/source/locale/"
|
||||
COMMON_DIR="${DOC_DIR}${COMMON}/source/locale/"
|
||||
|
||||
tox -evenv "sphinx-build -q -E -W -b gettext $TAG \
|
||||
${DOC_DIR}${book}/source/ ${LOCALE_DIR}"
|
||||
tox -evenv -- sphinx-build -q -E -W -b gettext $TAG \
|
||||
${DOC_DIR}${book}/source/ ${LOCALE_DIR}
|
||||
|
||||
|
||||
# Merge the common po file
|
||||
@ -92,11 +92,11 @@ function build_rst {
|
||||
for tag in $FIRSTAPP_TAGS ; do
|
||||
BUILD_DIR="${DOC_DIR}${book}/build-${tag}/html"
|
||||
DOCTREES="${BUILD_DIR}.doctrees"
|
||||
tox -evenv "sphinx-build -q -E \
|
||||
tox -evenv -- sphinx-build -q -E \
|
||||
-t $tag -D language=${language} \
|
||||
-d ${DOCTREES}
|
||||
${DOC_DIR}${book}/source/ \
|
||||
${BUILD_DIR}"
|
||||
${BUILD_DIR}
|
||||
PUBLISH_DIR=publish-docs/${language}/${book}-${tag}
|
||||
mkdir -p ${PUBLISH_DIR}
|
||||
rsync -a ${DOC_DIR}${book}/build-${tag}/html/ ${PUBLISH_DIR}
|
||||
@ -122,11 +122,11 @@ function build_rst {
|
||||
# To use debian only contents, use "debian" tag.
|
||||
BUILD_DIR="${DOC_DIR}${book}-${tag}/build-${tag}/html"
|
||||
DOCTREES="${BUILD_DIR}.doctrees"
|
||||
tox -evenv "sphinx-build -q -E -t debian \
|
||||
tox -evenv -- sphinx-build -q -E -t debian \
|
||||
-D language=${language}
|
||||
-d ${DOCTREES}
|
||||
${DOC_DIR}${book}-${tag}/source/ \
|
||||
${BUILD_DIR}"
|
||||
${BUILD_DIR}
|
||||
PUBLISH_DIR=publish-docs/${language}/${book}-${tag}
|
||||
mkdir -p ${PUBLISH_DIR}
|
||||
rsync -a ${DOC_DIR}${book}-${tag}/build-${tag}/html/ \
|
||||
@ -150,11 +150,11 @@ function build_rst {
|
||||
# Build the guide
|
||||
BUILD_DIR="${DOC_DIR}${book}/build-${tag}/html"
|
||||
DOCTREES="${BUILD_DIR}.doctrees"
|
||||
tox -evenv "sphinx-build -q -E -t $tag \
|
||||
tox -evenv -- sphinx-build -q -E -t $tag \
|
||||
-D language=${language}
|
||||
-d ${DOCTREES}
|
||||
${DOC_DIR}${book}/source/ \
|
||||
${BUILD_DIR}"
|
||||
${BUILD_DIR}
|
||||
PUBLISH_DIR=publish-docs/${language}/${book}-${tag}
|
||||
mkdir -p ${PUBLISH_DIR}
|
||||
rsync -a ${DOC_DIR}${book}/build-${tag}/html/ \
|
||||
@ -165,11 +165,11 @@ function build_rst {
|
||||
else
|
||||
BUILD_DIR="${DOC_DIR}${book}/build/html"
|
||||
DOCTREES="${BUILD_DIR}.doctrees"
|
||||
tox -evenv "sphinx-build \
|
||||
tox -evenv -- sphinx-build \
|
||||
-q -E -D language=${language} \
|
||||
-d ${DOCTREES} \
|
||||
${DOC_DIR}${book}/source/ \
|
||||
${BUILD_DIR}"
|
||||
${BUILD_DIR}
|
||||
PUBLISH_DIR=publish-docs/${language}/${book}/
|
||||
mkdir -p ${PUBLISH_DIR}
|
||||
rsync -a ${DOC_DIR}${book}/build/html/ ${PUBLISH_DIR}
|
||||
|
5
releasenotes/notes/fix-langs-tox-c3ead8fa02de31fc.yaml
Normal file
5
releasenotes/notes/fix-langs-tox-c3ead8fa02de31fc.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- Fix doc-tools-check-languages, it used a wrong way
|
||||
of passing arguments to tox and failed therefore with
|
||||
tox 2.5.0.
|
Loading…
Reference in New Issue
Block a user