diff --git a/docs/plugins.rst b/docs/plugins.rst index 9d826644..36b31131 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -370,6 +370,8 @@ arguments and can be called like this:: select random_integer(1, 10); +Examples: `datasette-jellyfish `_, `datasette-jq `_ + .. _plugin_hook_prepare_jinja2_environment: prepare_jinja2_environment(env) @@ -441,6 +443,8 @@ Or a list of dictionaries defining both a URL and an 'sri': 'sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4', }] +Examples: `datasette-cluster-map `_, `datasette-vega `_ + .. _plugin_hook_extra_js_urls: extra_js_urls(template, database, table, datasette) @@ -475,6 +479,8 @@ you have one: '/-/static-plugins/your-plugin/app.js' ] +Examples: `datasette-cluster-map `_, `datasette-vega `_ + .. _plugin_hook_publish_subcommand: publish_subcommand(publish) @@ -529,6 +535,8 @@ Let's say you want to build a plugin that adds a ``datasette publish my_hosting_ ): # Your implementation goes here +Example: `datasette-publish-fly `_ + .. _plugin_hook_render_cell: render_cell(value, column, table, database, datasette) @@ -599,6 +607,8 @@ If the value matches that pattern, the plugin returns an HTML link element: label=jinja2.escape(data["label"] or "") or " " )) +Examples: `datasette-render-binary `_, `datasette-render-markdown `_ + .. _plugin_hook_extra_body_script: extra_body_script(template, database, table, view_name, datasette) @@ -627,6 +637,7 @@ The ``datasette`` instance is provided primarily so that you can consult any plu The string that you return from this function will be treated as "safe" for inclusion in a ``