mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add task for generating screenshots (WIP)
This commit is contained in:
parent
be83802b95
commit
01e9c10699
8
tasks.py
8
tasks.py
@ -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`."""
|
||||||
|
Loading…
Reference in New Issue
Block a user