Skip to content

Commit

Permalink
Include hooks and settings in toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Justin committed Oct 31, 2017
1 parent 2649715 commit 93b71ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/contents.rst.inc
Expand Up @@ -8,7 +8,8 @@ Contents
cli
theming
plugins
events
hooks
settings
api


Expand Down
19 changes: 17 additions & 2 deletions docs/settings.rst
Expand Up @@ -16,10 +16,25 @@ The available fields are shown below.
`Settings Model <models.html#flaskbb.management.models.Setting>`__.


.. module:: flaskbb.management.models
.. autoclass:: flaskbb.utils.forms.SettingValueType
:members:
:undoc-members:


.. autoclass:: Setting
======================================== =========================================== =====================================
Value Type Rendered As Parsed & Saved as
======================================== =========================================== =====================================
:attr:`~SettingValueType.string` :class:`wtforms.fields.StringField` :class:`str`
:attr:`~SettingValueType.integer` :class:`wtforms.fields.IntegerField` :class:`int`
:attr:`~SettingValueType.float` :class:`wtforms.fields.FloatField` :class:`float`
:attr:`~SettingValueType.boolean` :class:`wtforms.fields.BooleanField` :class:`bool`
:attr:`~SettingValueType.select` :class:`wtforms.fields.SelectField` :class:`list`
:attr:`~SettingValueType.selectmultiple` :class:`wtforms.fields.SelectMultipleField` :class:`list`
======================================== =========================================== =====================================

TODO

.. autoclass:: flaskbb.management.models
:noindex:

.. attribute:: key
Expand Down

0 comments on commit 93b71ee

Please sign in to comment.