From 4abf87cb445a2667f062318820fd0d9e3ba27fa2 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Sun, 5 Jul 2020 19:16:07 -0700 Subject: [PATCH 1/2] remove exception for print.html --- ci/script.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index acfe2d2d0..92cd7c95d 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -4,15 +4,13 @@ main() { # test that building the book works mdbook build - # mdbook doesn't handle relative links correctly in print.html so skip it. - linkchecker --ignore-url "print.html" book + linkchecker book # now check this as a directory of the bookshelf rm -rf shelf mkdir shelf mv book shelf - # Skipping bad relative link errors in print.html again here. - linkchecker --ignore-url "print.html" shelf + linkchecker shelf mv shelf/book . rmdir shelf From f380afbc5615796d490f91928b65ea98bf5d2e86 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Sun, 5 Jul 2020 19:33:28 -0700 Subject: [PATCH 2/2] run for pull requests --- ci/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/script.sh b/ci/script.sh index 92cd7c95d..9d141cafc 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -62,6 +62,6 @@ main() { done } -if [ $TRAVIS_BRANCH != master ]; then +if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_PULL_REQUEST != false ]; then main fi