gc-da11yn / gc-da11yn.github.io

Digital Accessibility Toolkit - Boîte à outils d'accessibilité numérique
https://a11y.canada.ca/en/
MIT License
31 stars 32 forks source link

WIP: added html validator scripts #444

Closed acev0010 closed 3 months ago

acev0010 commented 9 months ago

What does this pull request (PR) do? / Que fait cette demande « pull » (PR)?

Adds html-validator script.

Here is a list of all the rules that can be added and/or removed to the configuration: https://html-validate.org/rules/index.html

The rules can be found in line 5 inside html-validator.js:

const loader = new StaticConfigLoader({
  extends: ["html-validate:recommended"],
  rules: {
    "no-trailing-whitespace": "off",
    "close-order": "error",
    "meta-refresh": "off"
  },
});

To run enter node scripts/html-validator.js in the terminal.

netlify[bot] commented 9 months ago

Deploy Preview for a11ycanada ready!

Name Link
Latest commit a2acf9e9dd1438cb72dc795e9e9feebee31ca244
Latest deploy log https://app.netlify.com/sites/a11ycanada/deploys/65676f4a00c836000842bcd3
Deploy Preview https://deploy-preview-444--a11ycanada.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

shawnthompson commented 8 months ago

This is working, just needed to see what configuration we wanted to validate against.