diff --git a/tools/test-documentation b/tools/test-documentation index 7653e1e386..3d361bcf1e 100755 --- a/tools/test-documentation +++ b/tools/test-documentation @@ -15,6 +15,9 @@ case $1 in -L|--loglevel) loglevel="$1 $2" ;; + --skip-check-links) + skip_check_links=1 + ;; esac cd "$(dirname "$0")"/../docs @@ -26,6 +29,11 @@ rm -rf _build # 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 +if [ -n "$skip_check_links" ]; then + color_message 94 "Skipped testing links in documentation." + exit 0 +fi + color_message 94 "Testing links in documentation..." cd ../tools/documentation_crawler diff --git a/tools/travis/backend b/tools/travis/backend index 4fb4fac274..d19d2b60f3 100755 --- a/tools/travis/backend +++ b/tools/travis/backend @@ -19,7 +19,7 @@ set -x ./tools/test-migrations ./tools/optimize-svg -./tools/test-documentation +./tools/test-documentation ${CIRCLECI:+--skip-check-links} ./tools/test-help-documentation ./tools/test-api ./tools/test-locked-requirements