add autodocs config Fixes #14
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
5
docs/extract.rst
Normal file
5
docs/extract.rst
Normal file
@@ -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
|
||||
|
5
docs/management-commands.rst
Normal file
5
docs/management-commands.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
Management Commands
|
||||
===================
|
||||
|
||||
.. automodule:: django_babel.management.commands.babel
|
||||
:members:
|
5
docs/middleware.rst
Normal file
5
docs/middleware.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
Middleware
|
||||
==========
|
||||
|
||||
.. automodule:: django_babel.middleware
|
||||
:members:
|
5
docs/template-tags.rst
Normal file
5
docs/template-tags.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
Template Tags
|
||||
=============
|
||||
|
||||
.. automodule:: django_babel.templatetags.babel
|
||||
:members:
|
Reference in New Issue
Block a user