Working on #33, this is the full set of steps I had to do in order to feel like I fully updated the repo when I updated a theme:
Update the colors in the style.py file
hatch run dev:create_css
hatch run dev:render_html
Pick and choose which updated files to git add, then git restore the irrelevant ones
Update the theme's README file, which requires manually calculating new contrast values for the table in the README
Open one of the example files under test/results/<theme-name>/ in my browser, take a screenshot, save it under a11y_pygments/<theme-name>/images/<theme-name>.png, and then update the link in the theme's README.
Seems to me that more of this could be automated, or at least better documented.
I also get the feeling that some of the file changes could be simplified. It looks like duplicate generated files are getting checked into the repo, for example:
Working on #33, this is the full set of steps I had to do in order to feel like I fully updated the repo when I updated a theme:
style.py
filehatch run dev:create_css
hatch run dev:render_html
git add
, thengit restore
the irrelevant onestest/results/<theme-name>/
in my browser, take a screenshot, save it undera11y_pygments/<theme-name>/images/<theme-name>.png
, and then update the link in the theme's README.Seems to me that more of this could be automated, or at least better documented.
I also get the feeling that some of the file changes could be simplified. It looks like duplicate generated files are getting checked into the repo, for example: