|
26 | 26 | echo "Building site ------------------------------------" |
27 | 27 | bundle exec jekyll build --trace |
28 | 28 |
|
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 | | - |
69 | 29 | echo "Validating HTML ----------------------------------" |
70 | 30 | # 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" |
72 | 32 |
|
73 | 33 | # If the site build succeeded but we found BOMs, we want to fail the build |
74 | 34 | if [ $FOUND_BOM == true ] |
|
0 commit comments