add autodocs config Fixes #14
This commit is contained in:
parent
913e73e02e
commit
dd3262daef
|
@ -8,6 +8,9 @@ from django.core.management.base import LabelCommand, CommandError
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ['Command']
|
||||||
|
|
||||||
|
|
||||||
class Command(LabelCommand):
|
class Command(LabelCommand):
|
||||||
|
|
||||||
args = '[makemessages] [compilemessages]'
|
args = '[makemessages] [compilemessages]'
|
||||||
|
|
|
@ -12,6 +12,11 @@ except ImportError:
|
||||||
|
|
||||||
from django_babel.middleware import get_current_locale
|
from django_babel.middleware import get_current_locale
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'datefmt', 'datetimefmt', 'timefmt', 'numberfmt', 'decimalfmt',
|
||||||
|
'currencyfmt', 'percentfmt', 'scientificfmt',
|
||||||
|
]
|
||||||
|
|
||||||
register = Library()
|
register = Library()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Extract
|
||||||
|
=======
|
||||||
|
|
||||||
|
.. automodule:: django_babel.extract
|
||||||
|
:members:
|
|
@ -15,6 +15,10 @@ Contents:
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
extract
|
||||||
|
management-commands
|
||||||
|
middleware
|
||||||
|
template-tags
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Management Commands
|
||||||
|
===================
|
||||||
|
|
||||||
|
.. automodule:: django_babel.management.commands.babel
|
||||||
|
:members:
|
|
@ -0,0 +1,5 @@
|
||||||
|
Middleware
|
||||||
|
==========
|
||||||
|
|
||||||
|
.. automodule:: django_babel.middleware
|
||||||
|
:members:
|
|
@ -0,0 +1,5 @@
|
||||||
|
Template Tags
|
||||||
|
=============
|
||||||
|
|
||||||
|
.. automodule:: django_babel.templatetags.babel
|
||||||
|
:members:
|
Loading…
Reference in New Issue