From 65674aa1a6b1fe73e0229c3ff78d40365ad66101 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Wed, 5 May 2021 16:42:42 +0200 Subject: [PATCH] Validate HTML with HTMLProofer, Closes #12 --- .github/htmlproofer.sh | 9 +++++++++ .github/workflows/deploy-gh-pages.yml | 9 ++++++++- components/Navigation.js | 4 ++-- pages/_document.js | 4 +++- pages/ask.md | 2 +- pages/docs/1_query/3_faq.md | 4 ++-- pages/docs/1_query/advanced/destination_types.md | 2 +- pages/docs/1_query/advanced/source_types.md | 2 +- .../1_getting_started/1_custom_config_cli.md | 2 +- pages/docs/2_modify/advanced/query_output_types.md | 12 ++++++------ pages/index.js | 2 +- pages/research.md | 4 ++-- pages/research/amf.md | 6 +++--- 13 files changed, 40 insertions(+), 22 deletions(-) create mode 100755 .github/htmlproofer.sh diff --git a/.github/htmlproofer.sh b/.github/htmlproofer.sh new file mode 100755 index 000000000..6ac776a96 --- /dev/null +++ b/.github/htmlproofer.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +htmlproofer ./out/ \ + --allow-hash-href true \ + --check-favicon true \ + --check-html true \ + --http-status-ignore "429" \ + --url-ignore "https://query.2020.eswc-conferences.org/,https://2019.eswc-conferences.org/" \ + --extension .html diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 08e08ad37..afb8dd126 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -16,7 +16,6 @@ jobs: uses: actions/checkout@v2.3.1 with: persist-credentials: false - - name: Install and Build 🔧 run: | npm install @@ -24,6 +23,14 @@ jobs: touch out/.nojekyll env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + - name: Check HTML ✅ + run: | + gem install html-proofer + .github/htmlproofer.sh - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@3.6.2 with: diff --git a/components/Navigation.js b/components/Navigation.js index e760fb5de..043b13a9f 100644 --- a/components/Navigation.js +++ b/components/Navigation.js @@ -4,8 +4,8 @@ export default class Navigation extends React.Component { render() { return