Skip to content

Commit

Permalink
building nit-picky now
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde committed Jan 27, 2016
1 parent a16f6ef commit 1103502
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/post_translate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ do

echo "Building HTML for locale '${LOCALE}'..."
LOG=/tmp/sphinx$$.log
${SPHINXBUILD} -d ${BUILDDIR}/doctrees -D language=${LOCALE} -b html source ${HTMLDIR}/${LOCALE} > $LOG
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
${SPHINXBUILD} -nW -d ${BUILDDIR}/doctrees -D language=${LOCALE} -b html source ${HTMLDIR}/${LOCALE} > $LOG
WARNINGS=`cat $LOG | grep warning`
ERRORS=`cat $LOG | grep ERROR`
if [[ $WARNINGS ]]
Expand Down Expand Up @@ -132,7 +134,9 @@ if $CREATE_PDF; then

# Traditional using texi2pdf....
# Compile the latex docs for that locale
${SPHINXBUILD} -d ${BUILDDIR}/doctrees -D language=${LOCALE} -b latex source ${BUILDDIR}/latex/${LOCALE} > /dev/null 2>&1
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
${SPHINXBUILD} -nW -d ${BUILDDIR}/doctrees -D language=${LOCALE} -b latex source ${BUILDDIR}/latex/${LOCALE} > /dev/null 2>&1
# Compile the pdf docs for that locale
# we use texi2pdf since latexpdf target is not available via
# sphinx-build which we need to use since we need to pass language flag
Expand Down

0 comments on commit 1103502

Please sign in to comment.