Warn that register_facet_classes may change, refs #830

Also documented policy that plugin hooks should not be shipped without a real example. Refs #818
This commit is contained in:
Simon Willison 2020-06-10 13:06:46 -07:00
commit 9f236c4c00
2 changed files with 4 additions and 0 deletions

View file

@ -891,6 +891,9 @@ register_facet_classes()
Return a list of additional Facet subclasses to be registered.
.. warning::
The design of this plugin hook is unstable and may change. See `issue 830 <https://github.com/simonw/datasette/issues/830>`__.
Each Facet subclass implements a new type of facet operation. The class should look like this:
.. code-block:: python