Skip to content

Commit c9adba3

Browse files
committed
disable external link checking
1 parent 58424a5 commit c9adba3

File tree

1 file changed

+1
-41
lines changed

1 file changed

+1
-41
lines changed

cibuild.sh

+1-41
Original file line numberDiff line numberDiff line change
@@ -26,49 +26,9 @@ fi
2626
echo "Building site ------------------------------------"
2727
bundle exec jekyll build --trace
2828

29-
if [ "$TRAVIS" == "true" ]; then
30-
# Travis has issues with https, so we have to ignore quite a few extra sites
31-
32-
# credit: code snippet borrowed from jekyllrb.com website source
33-
IGNORE_HREFS=$(ruby -e 'puts %w{
34-
https:\/\/.*
35-
example.com
36-
fatcatlab.com
37-
robosnap.net
38-
dsharlet.com
39-
alioth.debian.org
40-
manpages.info
41-
kernel.ubuntu.com
42-
hitechnic.com
43-
mindstorms.lego.com
44-
processors.wiki.ti.com
45-
}.map{|h| "/#{h}/"}.join(",")')
46-
else
47-
# credit: code snippet borrowed from jekyllrb.com website source
48-
IGNORE_HREFS=$(ruby -e 'puts %w{
49-
example.com
50-
https:\/\/github\.com\/myuser\/myrepo
51-
https:\/\/github.com\/ev3dev\/ev3dev\.github\.io\/edit\/.*
52-
fatcatlab.com
53-
robosnap.net
54-
alioth.debian.org
55-
kernel.ubuntu.com
56-
hitechnic.com
57-
mindstorms.lego.com
58-
processors.wiki.ti.com
59-
https:\/\/na\.industrial\.panasonic\.com\/products\/wireless-connectivity\/bluetooth\/bluetooth-classic\/series\/pan1325a1315a-series\/CS460
60-
}.map{|h| "/#{h}/"}.join(",")')
61-
fi
62-
63-
# Explanation of ignored sites:
64-
# - example.com and github.com/myuser/myrepo are fake/example links
65-
# - The edit on github pages don't exist when you create a page, so ignoring them.
66-
# They are automatically generated anyway.
67-
# - robosnap.net no longer exists, but keeping the link for historical reasons
68-
6929
echo "Validating HTML ----------------------------------"
7030
# We want to use the publish script so that we can implement other transformations in the future
71-
ruby publish.rb --no-fix-links --test "htmlproofer ./ --url-ignore $IGNORE_HREFS --check-html --allow-hash-href"
31+
ruby publish.rb --no-fix-links --test "htmlproofer ./ --disable-external --check-html --allow-hash-href"
7232

7333
# If the site build succeeded but we found BOMs, we want to fail the build
7434
if [ $FOUND_BOM == true ]

0 commit comments

Comments
 (0)