Skip to content

Commit

Permalink
Doc build in CI: build English docs with -W (apache#8039)
Browse files Browse the repository at this point in the history
Build the English docs with warnings treated as errors so we catch any
Sphinx warnings accidentally introduced in a PR.
  • Loading branch information
bneradt authored Jul 2, 2021
1 parent a645a2f commit aa1d73b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/jenkins/bin/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ autoreconf -fi && ./configure --enable-docs || exit 1

cd doc

echo "Building English version"
echo "Building English version with warnings treated as errors"
rm -rf docbuild/html
${ATS_MAKE} -e SPHINXOPTS="-D language='en'" html
${ATS_MAKE} -e SPHINXOPTS="-W -D language='en'" html
[ $? != 0 ] && exit 1

# Only continue with the rsync and JA build if we're on the official docs updates
Expand Down

0 comments on commit aa1d73b

Please sign in to comment.