Merge pull request #15 from python-babel/autodocs-rollout
add autodocs config Fixes #14
This commit is contained in:
commit
0940f09275
|
@ -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]'
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Extract
|
||||
=======
|
||||
|
||||
.. automodule:: django_babel.extract
|
||||
:members:
|
|
@ -15,6 +15,10 @@ Contents:
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
extract
|
||||
management-commands
|
||||
middleware
|
||||
template-tags
|
||||
|
||||
|
||||
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