With this tool, people can generate Accessibility Conformance Report in the OpenACR format.
This software includes builds on the work from the WAI's ATAG Report Tool (ART) and WCAG-EM Report Tool. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).
W3C Software notice and license.
This application is built with Svelte. To run it locally, you need to clone it this repository, have Node installed and then run this in the project's directory:
npm install
This may take a while the first time, but it only needs to be done once.
Then, to build the app with Rollup, and serve it on a local dev server, run:
export NODE_ENV=development; npm run dev
Navigate to localhost:10001. You should see your app running. Edit a component file in src
, save it, and reload the page to see your changes.
To create an optimised version of the app:
npm run build
The site serves what's on GitHub pages. To release to GitHub pages, create a new release. This should trigger a deploy action.
In some deployment contexts, things like paths may need to vary. There are two steps to this:
- Add environment specific settings to
config/[environment-name].json
, for example{ pathPrefix: "/editor" }
or{ imageDir: "/images" }
- Before running
npm run build
ornpm run dev
, setexport NODE_ENV=[environment-name]
Use variables in HTML, with {{ variable-name }}
, for instance {{ pathPrefix }}
. If you need these non-escaped, use triple brackets, for instance {{{ pathPrefix }}}
.
Mustache replaces the variables in src/index.html
and places the resulting HTML in public/index.html
.
In JavaScript, __buildEnv__
is replaced with the name of the build environment using the replace plugin for rollup.
To use variables, this is how you can import the JSON file that your build environment needs:
import vars from "../../config/__buildEnv__.json";
The vars are now in the vars
object, you can reference them with vars.variableName
, for instance vars.pathPrefix
.
The editor uses the OpenACR schema and catalog as data structures.
By default, this falls under a public domain license. Some libraries included here may include other licenses (see licenses.txt). See our LICENSE.md file for more information.