mirror of https://github.com/zulip/zulip.git
test-documentation: Fix whitespace for readability.
This commit is contained in:
parent
d1d8365a6b
commit
f1f5b25969
|
@ -4,28 +4,29 @@ set -e
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
echo "--help, -h show this help message and exit"
|
echo "--help, -h show this help message and exit"
|
||||||
echo "--loglevel=LEVEL, -L LEVEL log level (default: ERROR)"
|
echo "--loglevel=LEVEL, -L LEVEL log level (default: ERROR)"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-L|--loglevel)
|
-L|--loglevel)
|
||||||
loglevel="$1 $2"
|
loglevel="$1 $2"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cd "$(dirname "$0")"/../docs
|
cd "$(dirname "$0")"/../docs
|
||||||
rm -rf _build
|
rm -rf _build
|
||||||
|
|
||||||
# collapse_navigation is set to False in conf.py to improve sidebar navigation for users.
|
# 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.
|
# 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.
|
# 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.
|
# 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
|
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 -en "\033[0;94m"
|
||||||
echo "Testing links in documentation..."
|
echo "Testing links in documentation..."
|
||||||
echo -en "\033[0m"
|
echo -en "\033[0m"
|
||||||
|
|
||||||
|
cd ../tools/documentation_crawler
|
||||||
set +e
|
set +e
|
||||||
scrapy crawl_with_status documentation_crawler $loglevel
|
scrapy crawl_with_status documentation_crawler $loglevel
|
||||||
result=$?
|
result=$?
|
||||||
|
|
Loading…
Reference in New Issue