Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

Automated WCAG accessibility checker and ARIA validation plugin.

This is a thin SSG-side wrapper around the standalone ssg-a11y crate, which contains all of the actual WCAG 2.2 rule-checking logic (that crate has zero dependency on SSG’s Plugin trait, PluginContext, or SsgError, so it can be reused by other Rust web frameworks). This module’s job is purely the SSG integration: walking the compiled site’s HTML files, calling into ssg_a11y::check_page for each one, and writing the two build artifacts:

  • accessibility-report.json — issue list per page (existing format).
  • wcag-compliance.json — compliance matrix mapping each WCAG 2.2 criterion to its automation status (automated / runtime-only / manual / not-applicable) plus a per-page pass/fail summary.

See the ssg_a11y crate docs for the full list of WCAG criteria checked.

Structs§

AccessibilityIssue
An individual accessibility issue found in a page.
AccessibilityPlugin
Plugin that checks generated HTML for WCAG compliance.
AccessibilityReport
Full accessibility report.
CriterionEntry
One row of the WCAG 2.2 compliance matrix.
PageReport
Accessibility report for a single page.
WcagComplianceReport
WCAG 2.2 compliance matrix describing which criteria this crate can verify automatically, and whether every scanned page passed them.

Enums§

CriterionStatus
How a single WCAG criterion is verified.