This repository contains data shared across multiple W3C WAI repositories.
From the root directory of your git repository, run:
git submodule add https://github.com/w3c/wai-website-data.git _external/dataWhen it finishes, the content of the wai-website-data repository will be in the external/data directory.
A .gitsubmodules file will also be created with the following information.
[submodule "_external/data"]
path = _external/data
url = https://github.com/w3c/wai-website-data.git
If the file already exists, it will be updated accordingly.
To use the files, create symlinks where you need them:
- Navigate to the folder where you want the file to appear
- Create a symlink pointing to the corresponding file in the
external_datafolder, using theln -scommand.
For example:
cd _data
ln -s ../_external/data/navigation.yml
This makes the shared navigation.yml available in the _data folder.
To update wcag22.json, run the following within the project directory:
node _update-wcag-json.mjs
This requires Node.js version 20 or later.