Skip to content

Commit 08334c9

Browse files
authored
Merge pull request #970 from tannewt/fix_htmlproofer
Fix htmlproofer
2 parents 588d0e2 + 5a44eb2 commit 08334c9

File tree

5 files changed

+13
-27
lines changed

5 files changed

+13
-27
lines changed

.github/workflows/htmlproofer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
runs-on: ubuntu-latest
66
name: HTML Proofer
77
env:
8-
HTMLPROOFER_OPTIONS: './_site --internal-domains=pid.codes --check-html --check-opengraph --report-missing-names --log-level=:debug --url-ignore /www.andreas.org/,/www.kbles.ru/,/github.com\/KK2345\/TinyPassword$/,/github.com\/KK2345\/TinyPassword\/blob\/master\/README.md/,/www.oshec.org/,/github.com\/xuio\/Cynteract$/,/github.com\/mattomatto\/craft$/,/triparts.strikingly.com$/,/facebook.com/varioskybean$/'
8+
HTMLPROOFER_OPTIONS: '--ignore-urls /www.andreas.org/,/www.kbles.ru/,/github.com\/KK2345\/TinyPassword$/,/github.com\/KK2345\/TinyPassword\/blob\/master\/README.md/,/www.oshec.org/,/github.com\/xuio\/Cynteract$/,/github.com\/mattomatto\/craft$/,/triparts.strikingly.com$/,/facebook.com/varioskybean$/'
99
steps:
1010
- uses: actions/checkout@v4
1111
- uses: ruby/setup-ruby@v1
1212
with:
13-
ruby-version: '2.6'
13+
ruby-version: '3.3'
1414
- uses: actions/cache@v4
1515
with:
1616
path: vendor/bundle
@@ -23,7 +23,7 @@ jobs:
2323
bundle install --jobs 4 --retry 3
2424
- run: bundle exec jekyll doctor
2525
- run: bundle exec jekyll build
26-
- run: bundle exec htmlproofer $HTMLPROOFER_OPTIONS --disable-external
26+
- run: bundle exec htmlproofer ./_site --swap-urls "http[s]\://pid.codes:" --no-enforce-https --disable-external --log-level=:debug $HTMLPROOFER_OPTIONS
2727
# External check fail because they fetch too quickly from sites and get
2828
# 429 responses. We should cache checks and rate limit them as well.
2929
# - run: bundle exec htmlproofer $HTMLPROOFER_OPTIONS

Gemfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1+
source "https://rubygems.org"
2+
13
require "json"
24
require "open-uri"
35

4-
source "https://rubygems.org"
5-
6-
versions = open("https://pages.github.com/versions.json") do |source|
7-
JSON.parse(source.read)
8-
end
6+
versions = JSON.parse(OpenURI.open_uri('https://pages.github.com/versions.json').read)
97

108
# Github Pages environment
119
gem "github-pages", versions['github-pages']
1210
gem "redcarpet"
1311

14-
gem "html-proofer", '>=3.3.1', '<4.0.0'
12+
gem "html-proofer", '>=3.3.1'
13+

_includes/footer.html

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,9 @@
22
<div class="p2 wrap">
33
<div class="measure mt1 center">
44
<small>
5-
Layout crafted with &lt;3 by <a href="http://johnotander.com">John Otander</a> (<a href="https://twitter.com/4lpine">@4lpine</a>).
6-
&lt;/&gt; available on <a href="https://github.com/johnotander/pixyll">Github</a>.
5+
Layout crafted with &lt;3 by <a href="https://www.johno.com">John Otander</a> (<a href="https://twitter.com/4lpine">@4lpine</a>).
6+
&lt;/&gt; available on <a href="https://github.com/johno/pixyll">Github</a>.
77
</small>
88
</div>
99
</div>
1010
</footer>
11-
12-
{% if site.google_analytics %}
13-
<script>
14-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
15-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
16-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
17-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
18-
19-
ga('create', '{{ site.google_analytics }}', 'auto');
20-
ga('send', 'pageview');
21-
22-
</script>
23-
{% endif %}

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<link rel="stylesheet" href="{{ "/css/pixyll.css" | prepend: site.baseurl }}" type="text/css">
1313

1414
<!-- Fonts -->
15-
<link href='//fonts.googleapis.com/css?family=Merriweather:900,900italic,300,300italic' rel='stylesheet' type='text/css'>
16-
<link href='//fonts.googleapis.com/css?family=Lato:900,300' rel='stylesheet' type='text/css'>
15+
<link href='https://fonts.googleapis.com/css?family=Merriweather:900,900italic,300,300italic' rel='stylesheet' type='text/css'>
16+
<link href='https://fonts.googleapis.com/css?family=Lato:900,300' rel='stylesheet' type='text/css'>
1717
{% if site.show_social_icons or site.show_sharing_icons %}
1818
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
1919
{% endif %}

_includes/post_footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="py2 post-footer">
22
<img src="/images/me.jpeg" alt="John Otander" class="avatar" />
33
<p>
4-
Pixyll is an open-source Jekyll theme that's built by <a href="http://johnotander.com">John Otander</a>.
4+
Pixyll is an open-source Jekyll theme that's built by <a href="https://www.johno.com">John Otander</a>.
55
When he's not writing code and building things, he likes to ski. A. Lot.
66
</p>
77
<p>

0 commit comments

Comments
 (0)