Skip to content

Commit

Permalink
Setup pa11y for accessibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 committed Sep 10, 2024
1 parent edf23fe commit 077657f
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 1 deletion.
87 changes: 87 additions & 0 deletions .github/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->


<url>
<loc>https://dsw-appendix.scilifelab.se/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/privacy/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/contact/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/new-project/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/answer-questions/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/export-project/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/collaborate-project/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/migrate-project/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/clone-project/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/help-feedback/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/checklist-guide/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/useful-tricks/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/project-templates/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/knowledge-models/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://dsw-appendix.scilifelab.se/dmp-guide/</loc>
<lastmod>2023-11-21T10:12:32+00:00</lastmod>
<priority>0.80</priority>
</url>


</urlset>
32 changes: 32 additions & 0 deletions .github/workflows/pa11y_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Pa11y: A tool to check accessibility issue on a webpage
# The config file and sitemap file used by this workflow
# is in the ".github" directory of the repositiory
#
# This workflow is configured to run weekly on 12:30 every Friday
# It can also be run manually from repo's Gihthub page
#----------------------------------------------------------------

name: Pa11ly Accessibitly Check
on:
workflow_dispatch:
schedule:
- cron: '30 12 * * FRI'

jobs:
pa11ly:
name: Pa11ly Test
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Install Pa11ly CI
run: npm install -g pa11y-ci

- name: Run Pa11ly CI
run: pa11y-ci --sitemap https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/develop/.github/sitemap.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Hugo default output directory
/public

# more Hugo stuff
.hugo_build.lock

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Data Stewardship Wizard</title>
Expand Down

0 comments on commit 077657f

Please sign in to comment.