@@ -117,9 +117,32 @@ Once you are done you'll want to commit the new or changed files to your branch
117117pull request. An organizer will review your changes and merge them if they are ready. Once merged
118118an organizer will deploy your changes to the live site.
119119
120- # Deploying
120+ ## Deployment
121121
122- Deploying is easy: ` just deploy `
122+ The site lives on Github Pages and is deployed from ` main ` via Github Actions.
123+ Any new commit to the ` main ` branch (e.g, a push or pr merge) automatically deploys.
124+ If you need to redeploy, for instance if we start dynamically pulling from external
125+ sources in the future, you can also manually deploy via the Github Actions web UI.
123126
124- Lektor will commit the built site to the ` gh-pages ` branch, and push, which will get deployed by
125- GitHub automatically.
127+
128+ ## testing accessibility with Axe
129+
130+ We're using [ axe-core] ( https://www.deque.com/axe/ ) to do basic usability testing.
131+ Thanks to PyBay for inspiration on this.
132+ The way it works is:
133+ 1 . we make a temporary directory (once per pytest invocation)
134+ 1 . we make Lektor build into the temportary directory
135+ 1 . we start up a web server
136+ 1 . we point playwright + axe at our webserver
137+ 1 . we assert that there are zero warnings
138+
139+ ### So our site is accessible, right?
140+
141+ This kind of testing is the bare minimum, and we should look for ways to improve,
142+ especially if we can engage accessibility specialists and folks who primarily
143+ browse the web with screen readers
144+
145+ ### running locally
146+ The ` uv ` way:
147+ 1 . uvx --with-requirements tests/requirements.txt playwright install # this only needs to be done once
148+ 1 . uvx --with-requirements tests/requirements.txt pytest
0 commit comments