add autodocs config Fixes #14

This commit is contained in:
Thomas Grainger 2015-09-21 22:55:00 +01:00
parent 913e73e02e
commit dd3262daef
7 changed files with 32 additions and 0 deletions

View File

@ -8,6 +8,9 @@ from django.core.management.base import LabelCommand, CommandError
from django.conf import settings
__all__ = ['Command']
class Command(LabelCommand):
args = '[makemessages] [compilemessages]'

View File

@ -12,6 +12,11 @@ except ImportError:
from django_babel.middleware import get_current_locale
__all__ = [
'datefmt', 'datetimefmt', 'timefmt', 'numberfmt', 'decimalfmt',
'currencyfmt', 'percentfmt', 'scientificfmt',
]
register = Library()

5
docs/extract.rst Normal file
View File

@ -0,0 +1,5 @@
Extract
=======
.. automodule:: django_babel.extract
:members:

View File

@ -15,6 +15,10 @@ Contents:
.. toctree::
:maxdepth: 2
extract
management-commands
middleware
template-tags
Indices and tables

View File

@ -0,0 +1,5 @@
Management Commands
===================
.. automodule:: django_babel.management.commands.babel
:members:

5
docs/middleware.rst Normal file
View File

@ -0,0 +1,5 @@
Middleware
==========
.. automodule:: django_babel.middleware
:members:

5
docs/template-tags.rst Normal file
View File

@ -0,0 +1,5 @@
Template Tags
=============
.. automodule:: django_babel.templatetags.babel
:members: