An accessibility visualization toolkit
npm install @khanacademy/tota11y
Include it right before
</body> like so:
Want to contribute to tota11y? Awesome! Run the following in your terminal:
git clone https://github.com/Khan/tota11y.git cd tota11y/ npm install
Most of the functionality in tota11y comes from its plugins. Each plugin
gets its own directory in
and even handlebars. Here's what the simple LandmarksPlugin looks like.
index.js brings it all together.
tota11y uses a variety of technologies, including jQuery, webpack, babel, and JSX. There's no need to know all (or any!) of these to contribute to tota11y, but we hope tota11y is a good place to learn something new and interesting.
You can run unit tests on tota11y with the following:
Or lint with:
npm run lint
To perform manual testing as you work, you can run a live dev-server with the
To create a development build as the test server uses:
npm run build:dev
To create a production build, with minified and unminified output:
npm run build:prod
Currently, the following steps must be made to release a new version of tota11y:
package.jsonwith the version number to be released.
- Commit the release details to the CHANGELOG.md.
This should be list of the unique pull requests and commits that contributed to the release (see the CHANGLOG.md file for previous examples).
- Draft a new release for the version.
The tag name and name of the release should be of the form
1.2.3is the version from
- Login to
npmwith the Khan Academy credentials.
This requires someone with appropriate privileges.
This step will run tests and pre-publish checks, then perform a production build and publish the new package to NPM.