mirror of
https://github.com/simonw/datasette.git
synced 2026-09-27 20:34:08 +02:00
Screenshots for reusable modal dialogs docs, plus just shots (#2958)
docs/shots.yml defines documentation screenshots for shot-scraper "Just shots" runs them.
This commit is contained in:
parent
8e17729ff3
commit
cec5e6b2ef
9 changed files with 157 additions and 41 deletions
7
Justfile
7
Justfile
|
|
@ -49,13 +49,18 @@ export DATASETTE_SECRET := "not_a_secret"
|
|||
uv run cog -r README.md docs/*.rst
|
||||
|
||||
# Serve live docs on localhost:8000
|
||||
@docs: cog blacken-docs
|
||||
@docs: shots cog blacken-docs
|
||||
uv run make -C docs livehtml
|
||||
|
||||
# Build docs as static HTML
|
||||
@docs-build: cog blacken-docs
|
||||
rm -rf docs/_build && cd docs && uv run make html
|
||||
|
||||
# Take any missing documentation screenshots defined in docs/shots.yml
|
||||
@shots:
|
||||
uv run --group shots shot-scraper install
|
||||
cd docs && uv run --group shots shot-scraper multi shots.yml --no-clobber --reduced-motion --retina
|
||||
|
||||
# Apply Black
|
||||
@black:
|
||||
uv run black datasette tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue