Before you begin, make sure you have the following installed:
After cloning the repository, run:
bundle install bundle exec jekyll serve -w --config _config_doc.yml
Add the following to your Gemfile:
group :jekyll_plugins do gem 'wai-website-theme', git: 'https://github.com/w3c/wai-website-theme', branch: 'main' end
Note: You can optionally specify a branch, tag, or commit to use. For more information, see Bundler documentation.
Run bundle install
bundle install
Add the following to your config.yml file
config.yml
theme: wai-website-theme
Run Jekyll. In your project root directory, run:
bundle install bundle exec jekyll serve
To update the theme in existing projects, run the following within the project directory:
bundle update wai-website-theme --conservative
When there are updates, this will update the revision value in the Gemfile.lock to use the latest commit.
revision
Gemfile.lock
Note: Make sure to include the --conservative flag to avoid unintended updates of the theme dependencies.
--conservative
To update _data/wcag22.json, run the following within the project directory:
_data/wcag22.json
node _update-wcag-json.mjs
This requires Node.js version 20 or later.