diff --git a/.github/workflows/htmlproofer.yml b/.github/workflows/htmlproofer.yml index ad7f8f7e..6c852ee2 100644 --- a/.github/workflows/htmlproofer.yml +++ b/.github/workflows/htmlproofer.yml @@ -5,12 +5,12 @@ jobs: runs-on: ubuntu-latest name: HTML Proofer env: - 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$/' + 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$/' steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: '2.6' + ruby-version: '3.3' - uses: actions/cache@v4 with: path: vendor/bundle @@ -23,7 +23,7 @@ jobs: bundle install --jobs 4 --retry 3 - run: bundle exec jekyll doctor - run: bundle exec jekyll build - - run: bundle exec htmlproofer $HTMLPROOFER_OPTIONS --disable-external + - run: bundle exec htmlproofer ./_site --swap-urls "http[s]\://pid.codes:" --no-enforce-https --disable-external --log-level=:debug $HTMLPROOFER_OPTIONS # External check fail because they fetch too quickly from sites and get # 429 responses. We should cache checks and rate limit them as well. # - run: bundle exec htmlproofer $HTMLPROOFER_OPTIONS diff --git a/Gemfile b/Gemfile index 5090158a..ae80d221 100644 --- a/Gemfile +++ b/Gemfile @@ -1,14 +1,13 @@ +source "https://rubygems.org" + require "json" require "open-uri" -source "https://rubygems.org" - -versions = open("https://pages.github.com/versions.json") do |source| - JSON.parse(source.read) -end +versions = JSON.parse(OpenURI.open_uri('https://pages.github.com/versions.json').read) # Github Pages environment gem "github-pages", versions['github-pages'] gem "redcarpet" -gem "html-proofer", '>=3.3.1', '<4.0.0' +gem "html-proofer", '>=3.3.1' + diff --git a/_includes/footer.html b/_includes/footer.html index 9c2ce67d..938f0c41 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -2,22 +2,9 @@