test-documentation: Invoke sphinx-build via make instead of directly.

This lets us pick up the -W option from docs/Makefile.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-12-02 17:45:19 -08:00 committed by Anders Kaseorg
parent fdaca911e4
commit f15cfc00ef
1 changed files with 1 additions and 2 deletions

View File

@ -33,13 +33,12 @@ while true; do
done
cd "$(dirname "$0")"/../docs
rm -rf _build
# collapse_navigation is set to False in conf.py to improve sidebar navigation for users.
# However, we must change its value to True before we begin testing links.
# Otherwise, sphinx would generate a large number of links we don't need to test.
# The crawler would take a very long time to finish and TravisCI would fail as a result.
sphinx-build -j8 -b html -d _build/doctrees -D html_theme_options.collapse_navigation=True . _build/html
make clean html O='-D html_theme_options.collapse_navigation=True'
err=0