From f9b4f7cff58f554e129fcd7ab727963207cdbf56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Mon, 15 Jan 2024 14:42:37 -0300 Subject: [PATCH 1/7] Included axe accessibility tests as manual GitHub action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/axe.yml | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/axe.yml diff --git a/.github/workflows/axe.yml b/.github/workflows/axe.yml new file mode 100644 index 000000000000..fd84aaba20d2 --- /dev/null +++ b/.github/workflows/axe.yml @@ -0,0 +1,51 @@ +name: Axe accessibility testing + +on: + # if you want to run this on every push uncomment the following lines + # push: + # branches: + # - master + # - main + # pull_request: + # branches: + # - master + # - main + workflow_dispatch: + +permissions: + contents: write + +jobs: + check: + # available images: https://github.com/actions/runner-images#available-images + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2.2" + bundler-cache: true + - name: Update _config.yml ⚙️ + uses: fjogeleit/yaml-update-action@v0.13.1 + with: + commitChange: false + valueFile: "_config.yml" + propertyPath: "giscus.repo" + value: ${{ github.repository }} + - name: Install and Build 🔧 + run: | + pip3 install --upgrade jupyter + npm install -g mermaid.cli + npm install -g purgecss + export JEKYLL_ENV=production + bundle exec jekyll build --lsi + purgecss -c purgecss.config.js + - name: Run axe 🪓 + # https://github.com/dequelabs/axe-core-npm/tree/develop/packages/cli + run: | + npm install -g @axe-core/cli + npm install -g http-server + http-server _site/ & + axe http://localhost:8080 --load-delay=1500 --exit From 1e38487dd97cdc5be865df67339cf6880fd23f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Mon, 15 Jan 2024 14:42:47 -0300 Subject: [PATCH 2/7] Fixed some axe issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- _includes/footer.liquid | 4 ++-- _includes/header.liquid | 2 +- _layouts/default.liquid | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/footer.liquid b/_includes/footer.liquid index c6e0234c7f5b..7541c96ca834 100644 --- a/_includes/footer.liquid +++ b/_includes/footer.liquid @@ -1,5 +1,5 @@ {% if site.footer_fixed %} -