Skip to content

Commit 425dbbe

Browse files
authored
Merge pull request #84 from bckohan/v2.0.x
V2.0.x
2 parents 3b558ee + 4034d14 commit 425dbbe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

check.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ cd ./doc
2020
poetry run doc8 --ignore-path build --max-line-length 100 -q
2121
# check for broken links in the docs ############
2222
set +e
23-
poetry run sphinx-build -b linkcheck -q -D linkcheck_timeout=5 ./source ./build > /dev/null 2>&1
24-
if [ $? -ne 0 ]; then
25-
cat ./build/output.txt
26-
exit 1
23+
24+
# do not run this in CI - too spurious
25+
if [ "$1" != "--no-fix" ]; then
26+
poetry run sphinx-build -b linkcheck -q -D linkcheck_timeout=5 ./source ./build > /dev/null 2>&1
27+
if [ $? -ne 0 ]; then
28+
cat ./build/output.txt | grep broken
29+
exit 1
30+
fi
2731
fi
2832
#################################################
2933
cd ..

0 commit comments

Comments
 (0)