Ra11y
Ruby-based automated accessibility testing for Jekyll and other static sites
Requirements
Ra11y requires Pa11y or a similar command-line accessibility testing tool. To install Pa11y:
npm install -g pa11y
Installation
Add this line to your application's Gemfile:
gem 'ra11y'
And then execute:
$ bundle
Usage with Jekyll
Add the following to a Rakefile
:
require 'ra11y'
task :test do
sh "bundle exec jekyll build"
Ra11y::Site.new("./_site").run
end
Then run bundle exec rake test
Contributing
- Fork it ( https://github.com/[my-github-username]/ra11y/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request