test-documentation: Fix whitespace for readability.

This commit is contained in:
Greg Price 2018-01-09 10:07:42 -08:00
parent d1d8365a6b
commit f1f5b25969
1 changed files with 8 additions and 7 deletions

View File

@ -15,17 +15,18 @@ esac
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
cd ../tools/documentation_crawler
echo -en "\033[0;94m"
echo "Testing links in documentation..."
echo -en "\033[0m"
cd ../tools/documentation_crawler
set +e
scrapy crawl_with_status documentation_crawler $loglevel
result=$?