Skip to content

Commit

Permalink
updating html-proofer (#46)
Browse files Browse the repository at this point in the history
* updating html-proofer

* adding vscode accelerators
  • Loading branch information
marcolivierarsenault authored Aug 2, 2023
1 parent 1bffd9c commit 6771ee0
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: JEKYLL_ENV=production bundle exec jekyll build --verbose --destination site
- run: echo "coffeeanddata.ca" > ./site/CNAME
- name: test
run: bundle exec htmlproofer --assume-extension --allow-hash-href --http-status-ignore 999,403,500 --url-ignore "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
run: bundle exec htmlproofer --assume-extension .html --allow-hash-href --no-enforce_https --no-check-external-hash --ignore-status-code 999,403,500 --ignore-urls "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run: JEKYLL_ENV=production bundle exec jekyll build --verbose --destination site
- run: echo "coffeeanddata.ca" > ./site/CNAME
- name: test
run: bundle exec htmlproofer --assume-extension --allow-hash-href --http-status-ignore 999,403,500 --url-ignore "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
run: bundle exec htmlproofer --assume-extension .html --allow-hash-href --no-enforce_https --no-check-external-hash --ignore-status-code 999,403,500 --ignore-urls "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
sonarQube:
name: SonarQube
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"terminal.integrated.profiles.osx": { "zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] } }
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Serve",
"type": "shell",
"command": "bundle exec jekyll serve --livereload",
},
{
"label": "Build",
"type": "shell",
"command": "JEKYLL_ENV=production bundle exec jekyll build --destination ./_site",
},
{
"label": "Test",
"type": "shell",
"command": "bundle exec htmlproofer --assume-extension .html --allow-hash-href --no-enforce_https --no-check-external-hash --ignore-status-code 999,403,500 --ignore-urls \"/twitter*/,/gstatic*/,/google*/,/tag*/\" ./_site",
}
]
}
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ group :jekyll_plugins do
gem 'jekyll-sitemap'
end

gem "html-proofer", "~> 3.2"
gem "html-proofer"
42 changes: 33 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,46 @@
GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.0)
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
afm (0.2.2)
async (2.6.3)
console (~> 1.10)
fiber-annotation
io-event (~> 1.1)
timers (~> 4.1)
colorator (1.1.0)
concurrent-ruby (1.2.2)
console (1.18.0)
fiber-annotation
fiber-local
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
ffi (1.15.5)
fiber-annotation (0.2.0)
fiber-local (1.0.0)
forwardable-extended (2.6.0)
google-protobuf (3.23.4-x86_64-darwin)
google-protobuf (3.23.4-x86_64-linux)
html-proofer (3.19.4)
hashery (2.1.2)
html-proofer (5.0.7)
addressable (~> 2.3)
mercenary (~> 0.3)
async (~> 2.1)
nokogiri (~> 1.13)
parallel (~> 1.10)
pdf-reader (~> 2.11)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-event (1.2.3)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
Expand Down Expand Up @@ -65,36 +80,45 @@ GEM
racc (~> 1.4)
nokogiri (1.15.3-x86_64-linux)
racc (~> 1.4)
parallel (1.23.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
pdf-reader (2.11.0)
Ascii85 (~> 1.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
ttfunk
public_suffix (5.0.3)
racc (1.7.1)
rainbow (3.1.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (4.1.2)
rexml (3.2.6)
rouge (4.1.3)
ruby-rc4 (0.1.5)
safe_yaml (1.0.5)
sass-embedded (1.64.1-x86_64-darwin)
sass-embedded (1.64.2-x86_64-darwin)
google-protobuf (~> 3.23)
sass-embedded (1.64.1-x86_64-linux-gnu)
sass-embedded (1.64.2-x86_64-linux-gnu)
google-protobuf (~> 3.23)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
timers (4.3.5)
ttfunk (1.7.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.4.2)
webrick (1.8.1)
yell (2.2.2)
zeitwerk (2.6.10)

PLATFORMS
x86_64-darwin-22
x86_64-linux

DEPENDENCIES
html-proofer (~> 3.2)
html-proofer
jekyll
jekyll-paginate
jekyll-seo-tag
Expand Down
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="site-branding">
{% if site.logo != null %}
<p class="site-logo"><a href="{{ site.baseurl }}/" rel="home"><img src="{{ site.baseurl }}/{{ site.logo }}" alt="{{ site.name }}" /></a></p>
<h1 class="site-title screen-reader-text"><a href="{{ site.baseurl }}" rel="home">{{site.title}}</a></h1>
<h1 class="site-title screen-reader-text"><a href="{{ site.baseurl }}/" rel="home">{{site.title}}</a></h1>
{% else %}
<h1 class="site-title"><a href="{{ site.baseurl }}/" rel="home">{{site.name}}</a></h1>
{% endif %}
Expand All @@ -17,4 +17,4 @@ <h1 class="site-title"><a href="{{ site.baseurl }}/" rel="home">{{site.name}}</a
<button id="sidebar-show" class="sidebar-toggle btn-icon"><span class="screen-reader-text">Open Sidebar</span><span class="icon-more" aria-hidden="true"></span></button>
</nav><!-- .site-navigation -->
</div><!-- .site-header-inside -->
</header><!-- .site-header -->
</header><!-- .site-header -->

0 comments on commit 6771ee0

Please sign in to comment.