diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/package.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/package.json b/docs/package.json index 6bc4073fe..8d342df32 100644 --- a/docs/package.json +++ b/docs/package.json @@ -6,6 +6,9 @@ "start": "astro dev", "build": "astro build", "lint": "run-p --aggregate-output lint:linkcheck", + "lint:a11y": "start-test 'yarn start --silent' 3000 'yarn lint:a11y:local'", + "lint:a11y:local": "pa11y-ci --sitemap 'http://localhost:3000/sitemap.xml' --sitemap-find 'https://docs.astro.build' --sitemap-replace 'http://localhost:3000'", + "lint:a11y:remote": "pa11y-ci --sitemap 'https://docs.astro.build/sitemap.xml'", "lint:linkcheck": "start-test 'yarn start --silent' 3000 'yarn lint:linkcheck:local'", "lint:linkcheck:local": "blc -ro --user-agent 'broken-link-checker/0.7.8' 'http://localhost:3000'", "lint:linkcheck:remote": "blc -ro --user-agent 'broken-link-checker/0.7.8' 'https://docs.astro.build/'" @@ -15,6 +18,7 @@ "astro": "^0.18.2", "broken-link-checker": "^0.7.8", "npm-run-all": "^4.1.5", + "pa11y-ci": "^2.4.2", "prettier": "^2.3.2", "start-server-and-test": "^1.12.6" } |