Skip to content

Commit 734a33c

Browse files
CCM-15307 Fixing Pa11y findings (#196)
* CCM-15307 Fixing Pa11y findings * CCM-15307 Drop PDF links before Pa11y runs
1 parent aad2417 commit 734a33c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/.pa11y-ci.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ function getUrlsFromSiteMap() {
88

99
const sitemap = new XMLParser().parse(file);
1010

11-
return sitemap.urlset.url.map(r => r.loc);
11+
// Filter out PDF files from accessibility testing
12+
return sitemap.urlset.url
13+
.map(r => r.loc)
14+
.filter(url => !url.endsWith('.pdf'));
1215
}
1316

1417
module.exports = {

docs/pages/using-nhs-notify/upload-a-letter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ The address is a personalisation field and is set automatically.
191191

192192
The recipient's name is always included as the first line of the address.
193193

194-
If your letter is about a child, use the [parent or guardian letter template](#download-our-blank-letter-template). This template includes 'Parent or guardian of' in the first line of the address.
194+
If your letter is about a child, use the [parent or guardian letter template](#download-a-blank-word-letter-template). This template includes 'Parent or guardian of' in the first line of the address.
195195

196196
### NHS logo
197197

0 commit comments

Comments
 (0)