mirror of
https://github.com/simonw/datasette.git
synced 2026-09-27 04:14:25 +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
|
|
@ -312,6 +312,19 @@ To update these pages, run the following command::
|
|||
|
||||
uv run cog -r docs/*.rst
|
||||
|
||||
.. _contributing_documentation_screenshots:
|
||||
|
||||
Documentation screenshots
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Screenshots in the documentation are defined in ``docs/shots.yml`` and taken using `shot-scraper <https://shot-scraper.datasette.io/>`__. That file starts a Datasette server that loads JavaScript from ``docs/shots/``, then saves each screenshot as a WebP image in ``docs/images/``.
|
||||
|
||||
To take any screenshots that do not exist yet, run::
|
||||
|
||||
just shots
|
||||
|
||||
``just docs`` runs this too. Existing images are skipped. To replace a screenshot, delete its image file and run ``just shots`` again.
|
||||
|
||||
.. _contributing_template_contexts:
|
||||
|
||||
Documented template contexts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue