mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Enable MyST Markdown docs, port events.rst, refs #2565
This commit is contained in:
parent
48982a0ff5
commit
47e4060469
5 changed files with 28 additions and 16 deletions
14
docs/events.md
Normal file
14
docs/events.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(events)=
|
||||
# Events
|
||||
|
||||
Datasette includes a mechanism for tracking events that occur while the software is running. This is primarily intended to be used by plugins, which can both trigger events and listen for events.
|
||||
|
||||
The core Datasette application triggers events when certain things happen. This page describes those events.
|
||||
|
||||
Plugins can listen for events using the {ref}`plugin_hook_track_event` plugin hook, which will be called with instances of the following classes - or additional classes {ref}`registered by other plugins <plugin_hook_register_events>`.
|
||||
|
||||
```{eval-rst}
|
||||
.. automodule:: datasette.events
|
||||
:members:
|
||||
:exclude-members: Event
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue