mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-14 18:11:01 +00:00
d61dfdcddc
* fix(website): remediate WCAG accessibility issues and add axe regression guardrail Fixes accessibility violations found by an axe-core sweep of every website page in both light and dark themes: - aria-allowed-role (WCAG 1.3.1, 4.1.2): the shared resource card rendered an <article> with role="listitem", which is not an allowed role for that element. Switched the wrapper to a <div role="listitem"> so the listitem role is valid (affected every card, e.g. #arcade-canvas on /extensions/). - aria-required-children (WCAG 1.3.1): removed role="list" from the tools, contributors, and cookbook containers whose children are not list items. - nested-interactive (WCAG 4.1.2): removed tabIndex=0 from extension cards and rendered the author as a non-interactive span so no interactive control is nested inside another (the author link remains in the modal). - color-contrast (WCAG 1.4.3): gave .btn-primary explicit white text with an AA-compliant hover (#7326d6), and bumped the dark-theme secondary text gray (--sl-color-gray-3) to #84849c (5.32:1) so ToC / meta / footer text passes. Adds a checked-in regression guardrail: - website/scripts/a11y-audit.mjs runs axe-core over all routes in both themes against the production build and fails on critical/serious violations only (moderate/minor are reported but non-blocking). Transitions/animations are disabled before sampling so axe measures settled, steady-state colors instead of mid-theme-transition frames. - Adds npm scripts (website:a11y at the root, a11y in website/) and README docs. The matching Build Website CI step is proposed in the PR description (omitted from this commit because the authoring token lacks workflow scope). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(website): harden a11y audit per PR review - Fail fast when a route navigation returns a non-2xx response, so the guardrail can't silently pass against a broken/missing route (page.goto resolves even for 4xx/5xx). - Launch the Astro preview server via `node <astro-bin>` instead of `spawn(..., { shell: true })`. Removing the shell layer keeps signal delivery / detached-PGID shutdown predictable; resolving Astro's bin and running it with process.execPath also avoids the EINVAL that modern Node raises when spawning the npx.cmd shim without a shell on Windows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: David Pine <7679720+IEvangelist@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
53 lines
1.8 KiB
JSON
53 lines
1.8 KiB
JSON
{
|
|
"name": "awesome-copilot",
|
|
"version": "1.0.0",
|
|
"description": "Enhance your GitHub Copilot experience with community-contributed instructions, prompts, agents, and skills.",
|
|
"main": "./eng/update-readme.js",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "npm run build",
|
|
"build": "node ./eng/update-readme.mjs && node ./eng/generate-marketplace.mjs",
|
|
"contributors:add": "all-contributors add",
|
|
"contributors:report": "node ./eng/contributor-report.mjs",
|
|
"contributors:generate": "all-contributors generate",
|
|
"contributors:check": "all-contributors check",
|
|
"plugin:validate": "node ./eng/validate-plugins.mjs",
|
|
"plugin:create": "node ./eng/create-plugin.mjs",
|
|
"skill:validate": "node ./eng/validate-skills.mjs",
|
|
"skill:create": "node ./eng/create-skill.mjs",
|
|
"plugin:clean": "node ./eng/clean-materialized-plugins.mjs",
|
|
"plugin:generate-marketplace": "node ./eng/generate-marketplace.mjs",
|
|
"website:data": "node ./eng/generate-website-data.mjs",
|
|
"website:dev": "npm run website:data && npm run --prefix website dev",
|
|
"website:build": "npm run build && npm run website:data && npm run --prefix website build",
|
|
"website:a11y": "npm run website:build && npm run --prefix website a11y",
|
|
"website:preview": "npm run --prefix website preview"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/github/awesome-copilot.git"
|
|
},
|
|
"keywords": [
|
|
"github",
|
|
"copilot",
|
|
"ai",
|
|
"prompts",
|
|
"instructions",
|
|
"skills",
|
|
"agents"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"ajv": "^8.20.0",
|
|
"ajv-formats": "^3.0.1",
|
|
"@microsoft/vally": "^0.6.0",
|
|
"all-contributors-cli": "^6.26.1"
|
|
},
|
|
"dependencies": {
|
|
"js-yaml": "^5.2.0",
|
|
"vfile": "^6.0.3",
|
|
"vfile-matter": "^5.0.1"
|
|
}
|
|
}
|