File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,16 @@ git log --pretty=format:'%H' -n 1 >> _config.yml
14
14
15
15
bundle exec jekyll build
16
16
17
- # - ignore everything below every webapp directory, so we dont mess with the source code
17
+ # credit: code snippet borrowed from jekyllrb.com website source
18
+ IGNORE_HREFS=$( ruby -e ' puts %w{
19
+ example\.com.*
20
+ https:\/\/github.com\/iluwatar\/java-design-patterns\/fork
21
+ https:\/\/sonarqube.com.*
22
+ }.map{|h| "/#{h}/"}.join(",")' )
23
+ # - ignore example.com because they are just examples/fakes
18
24
# - ignore the fork link of our project, because it somehow is not valid (https://validator.w3.org/)
25
+ # - ignore sonarqube.com/api/badges/gate because of travis-only 'SSL Connect Error's
26
+
27
+ # - ignore everything below every webapp directory, so we dont mess with the source code
19
28
# - ignore the folder principles of the external dependency (git submodule) webpro/programming-principles
20
- bundle exec htmlproofer ./_site/ --file-ignore " /.+\/(webapp|principles)\/.*/" --url-ignore " https://github.com/iluwatar/java-design-patterns/fork "
29
+ bundle exec htmlproofer ./_site/ --file-ignore " /.+\/(webapp|principles)\/.*/" --url-ignore $IGNORE_HREFS --check-html --allow-hash-href
You can’t perform that action at this time.
0 commit comments