From 34d17d7737948b98155d7830547c65d42ce4ccc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Brachth=C3=A4user?= Date: Mon, 4 Jan 2021 11:17:55 +0100 Subject: [PATCH 1/3] Ignore status code 400 As per twitter's API description, 400 indicates an authentication problem. I am not trying to fix the underlying problem here, but merely ignore the error. --- scripts/ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci.sh b/scripts/ci.sh index 99949e207e..bb66d01773 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -10,6 +10,6 @@ rm -r /tmp/mdoc-out/ bundle exec jekyll build # Checking for docs.scala-lang/blob/master leads to a chicken and egg problem because of the edit links of new pages. -bundle exec htmlproofer ./_site/ --only-4xx --http-status-ignore "401,429" --empty-alt-ignore --allow-hash-href --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/' +bundle exec htmlproofer ./_site/ --only-4xx --http-status-ignore "400,401,429" --empty-alt-ignore --allow-hash-href --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/' exit 0 From 5c17ee9678a7aadc50a15298ab8a5bd9da05b99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Brachth=C3=A4user?= Date: Mon, 4 Jan 2021 12:15:00 +0100 Subject: [PATCH 2/3] Break arguments into separate lines and temporarily disable checking for tasty docs --- scripts/ci.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/ci.sh b/scripts/ci.sh index bb66d01773..b78dde3900 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -10,6 +10,12 @@ rm -r /tmp/mdoc-out/ bundle exec jekyll build # Checking for docs.scala-lang/blob/master leads to a chicken and egg problem because of the edit links of new pages. -bundle exec htmlproofer ./_site/ --only-4xx --http-status-ignore "400,401,429" --empty-alt-ignore --allow-hash-href --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/' +# The docs at http://dotty.epfl.ch/api/scala/tasty/ are temporarily not available. +bundle exec htmlproofer ./_site/\ + --only-4xx\ + --http-status-ignore "400,401,429"\ + --empty-alt-ignore\ + --allow-hash-href\ + --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/,/http://dotty.epfl.ch/api/scala/tasty/Reflection/.*/' exit 0 From 85ea0dd6b1996af8faf7f2ea7c0b9608c9ce17e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Brachth=C3=A4user?= Date: Mon, 4 Jan 2021 13:10:47 +0100 Subject: [PATCH 3/3] Try to fix the ignore pattern --- scripts/ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci.sh b/scripts/ci.sh index b78dde3900..63ba8dfaeb 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -16,6 +16,6 @@ bundle exec htmlproofer ./_site/\ --http-status-ignore "400,401,429"\ --empty-alt-ignore\ --allow-hash-href\ - --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/,/http://dotty.epfl.ch/api/scala/tasty/Reflection/.*/' + --url-ignore '/https://github.com/scala/docs.scala-lang/blob/master/.*/,/www.oracle.com/,/.*dotty.epfl.ch\/api\/scala\/tasty\/Reflection.*/' exit 0