Add task for generating screenshots (WIP)

This commit is contained in:
Oliver Walters 2024-08-14 21:47:14 +10:00
parent be83802b95
commit 01e9c10699

View File

@ -1429,6 +1429,14 @@ def docs_server(c, address='localhost:8080', compile_schema=False):
run(c, f'mkdocs serve -a {address} -f docs/mkdocs.yml') run(c, f'mkdocs serve -a {address} -f docs/mkdocs.yml')
@task
def docs_generate_screenshots(c):
"""Regenerate UI screenshots for the documentation."""
# Ensure frontend requirements are met
run(c, 'npx playwright install --install-deps', path='./src/frontend')
run(c, 'npx playwright test --project screenshot', path='./src/frontend')
@task @task
def clear_generated(c): def clear_generated(c):
"""Clear generated files from `inv update`.""" """Clear generated files from `inv update`."""