mirror of
https://github.com/simonw/datasette.git
synced 2026-09-28 21:04:08 +02:00
Add script to regenerate the datasette-modal docs screenshot
docs/generate-datasette-modal-example.sh builds a temporary demo database and plugins directory containing the createModal() example from the Modal dialogs documentation, starts a Datasette server, takes the screenshot with shot-scraper, quantizes it to an 8-bit palette PNG and stops the server again. Output is byte-identical to the committed docs/datasette-modal-example.png. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TShiUYVMmmF4zyJR6GMw34
This commit is contained in:
parent
5fd27d9347
commit
967c1298ea
2 changed files with 149 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ The simplest way to create a modal from a plugin is ``datasetteManager.createMod
|
|||
|
||||
Calling ``modal.showModal()`` then displays the dialog:
|
||||
|
||||
.. Regenerate this screenshot with docs/generate-datasette-modal-example.sh
|
||||
|
||||
.. image:: datasette-modal-example.png
|
||||
:alt: A modal dialog titled "My plugin" containing the text "Hello from a plugin!" and Cancel and Save buttons, shown over a dimmed and blurred Datasette table page.
|
||||
:width: 550px
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue