Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 15, 2021
1 parent ab97bbc commit 26eb3e7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
6 changes: 6 additions & 0 deletions build/.pa11yci.json
Expand Up @@ -2,9 +2,15 @@
"standard": "WCAG2AA",
"level": "error",
"defaults": {
"reporters": [
"cli",
["json", { "fileName": "./pa11y-ci-results.json" }]
],
"runners": [
"axe"
],
"useIncognitoBrowserContext": false,
"screenCapture": "./my-screen-capture.png",
"hideElements": ".bd-search, [id*='tarteaucitron'], #TableOfContents, .text-primary, .navbar-light .navbar-brand, .accordion-button:not(.collapsed), .active, [aria-current], select:disabled, [disabled] label, [disabled] + label, .modal, .bd-example nav, .badge.rounded-pill.bg-info.text-white, .exclude-from-pa11y-analysis, a.disabled, .form-check.form-switch",
"ignore": [
"heading-order",
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -65,7 +65,7 @@
"docs-spellcheck": "cspell \"site/**/*.md\" --no-progress",
"docs-vnu": "node build/vnu-jar.js",
"docs-lint": "npm-run-all --aggregate-output --parallel docs-vnu docs-linkinator docs-spellcheck",
"docs-pa11y": "delay 3 && pa11y-ci --config build/.pa11yci.json --sitemap http://localhost:9001/sitemap.xml --sitemap-find https://boosted.orange.com --sitemap-replace http://localhost:9001 --json > pa11y-ci-results.json",
"docs-pa11y": "delay 3 && pa11y-ci --config build/.pa11yci.json --sitemap http://localhost:9001/sitemap.xml --sitemap-find https://boosted.orange.com --sitemap-replace http://localhost:9001",
"docs-pa11y-html": "pa11y-ci-reporter-html -d .pa11y",
"docs-accessibility": "npm-run-all --parallel --race docs-serve-only docs-pa11y",
"docs-serve": "hugo server --port 9001 --disableFastRender",
Expand Down Expand Up @@ -143,7 +143,7 @@
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"pa11y-ci": "^3.0.0",
"pa11y-ci-reporter-html": "^3.0.2",
"pa11y-ci-reporter-html": "^3.0.3",
"postcss": "^8.4.4",
"postcss-cli": "^9.0.2",
"rollup": "^2.60.2",
Expand Down
11 changes: 2 additions & 9 deletions site/layouts/sitemap.xml
@@ -1,12 +1,5 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{- range .Data.Pages -}}{{ if and .Permalink (ne .Params.sitemap_exclude true) }}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}"/>{{ end }}
<xhtml:link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}"/>{{ end }}
</url>{{ end }}{{ end }}
<loc>http://localhost:9001/docs/5.1/getting-started/accessibility</loc>
</url>
</urlset>

0 comments on commit 26eb3e7

Please sign in to comment.