Skip to content

Commit

Permalink
Merge pull request #15 from python-babel/autodocs-rollout
Browse files Browse the repository at this point in the history
add autodocs config Fixes #14
  • Loading branch information
graingert committed Sep 22, 2015
2 parents 913e73e + dd3262d commit 0940f09
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_babel/management/commands/babel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from django.conf import settings


__all__ = ['Command']


class Command(LabelCommand):

args = '[makemessages] [compilemessages]'
Expand Down
5 changes: 5 additions & 0 deletions django_babel/templatetags/babel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

from django_babel.middleware import get_current_locale

__all__ = [
'datefmt', 'datetimefmt', 'timefmt', 'numberfmt', 'decimalfmt',
'currencyfmt', 'percentfmt', 'scientificfmt',
]

register = Library()


Expand Down
5 changes: 5 additions & 0 deletions docs/extract.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Extract
=======

.. automodule:: django_babel.extract
:members:
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Contents:
.. toctree::
:maxdepth: 2

extract
management-commands
middleware
template-tags


Indices and tables
Expand Down
5 changes: 5 additions & 0 deletions docs/management-commands.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Management Commands
===================

.. automodule:: django_babel.management.commands.babel
:members:
5 changes: 5 additions & 0 deletions docs/middleware.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Middleware
==========

.. automodule:: django_babel.middleware
:members:
5 changes: 5 additions & 0 deletions docs/template-tags.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Template Tags
=============

.. automodule:: django_babel.templatetags.babel
:members:

0 comments on commit 0940f09

Please sign in to comment.