Skip to content

Commit

Permalink
Added class reference autodoc
Browse files Browse the repository at this point in the history
Among other things, this allows the more usable documentation to
reference the class details without repetition.
  • Loading branch information
acdha committed Sep 21, 2010
1 parent 66da967 commit ffa0ec8
Show file tree
Hide file tree
Showing 18 changed files with 95 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -22,7 +22,7 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.intersphinx']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -10,3 +10,4 @@ interfaces.

tutorial
settings
reference/index.rst
5 changes: 5 additions & 0 deletions docs/reference/api.rst
@@ -0,0 +1,5 @@
API
===

.. automodule:: tastypie.api
:members:
5 changes: 5 additions & 0 deletions docs/reference/authentication.rst
@@ -0,0 +1,5 @@
Authentication
==============

.. automodule:: tastypie.authentication
:members:
5 changes: 5 additions & 0 deletions docs/reference/authorization.rst
@@ -0,0 +1,5 @@
Authorization
=============

.. automodule:: tastypie.authorization
:members:
5 changes: 5 additions & 0 deletions docs/reference/bundle.rst
@@ -0,0 +1,5 @@
Bundle
======

.. automodule:: tastypie.bundle
:members:
5 changes: 5 additions & 0 deletions docs/reference/cache.rst
@@ -0,0 +1,5 @@
Cache
=====

.. automodule:: tastypie.cache
:members:
6 changes: 6 additions & 0 deletions docs/reference/constants.rst
@@ -0,0 +1,6 @@
Constants
=========

.. automodule:: tastypie.constants
:members:
:undoc-members:
5 changes: 5 additions & 0 deletions docs/reference/exceptions.rst
@@ -0,0 +1,5 @@
Exceptions
==========

.. automodule:: tastypie.exceptions
:members:
5 changes: 5 additions & 0 deletions docs/reference/fields.rst
@@ -0,0 +1,5 @@
Fields
======

.. automodule:: tastypie.fields
:members:
5 changes: 5 additions & 0 deletions docs/reference/http.rst
@@ -0,0 +1,5 @@
HTTP
====

.. automodule:: tastypie.http
:members:
20 changes: 20 additions & 0 deletions docs/reference/index.rst
@@ -0,0 +1,20 @@
Tastypie Module Reference
=========================

.. toctree::
:maxdepth: 2

api.rst
authentication.rst
authorization.rst
bundle.rst
cache.rst
constants.rst
exceptions.rst
fields.rst
http.rst
models.rst
paginator.rst
resources.rst
serializers.rst
throttle.rst
5 changes: 5 additions & 0 deletions docs/reference/models.rst
@@ -0,0 +1,5 @@
Modles
======

.. automodule:: tastypie.models
:members:
5 changes: 5 additions & 0 deletions docs/reference/paginator.rst
@@ -0,0 +1,5 @@
Paginator
=========

.. automodule:: tastypie.paginator
:members:
5 changes: 5 additions & 0 deletions docs/reference/resources.rst
@@ -0,0 +1,5 @@
Resources
=========

.. automodule:: tastypie.resources
:members:
5 changes: 5 additions & 0 deletions docs/reference/serializers.rst
@@ -0,0 +1,5 @@
Serializers
===========

.. automodule:: tastypie.serializers
:members:
5 changes: 5 additions & 0 deletions docs/reference/throttle.rst
@@ -0,0 +1,5 @@
Throttle
========

.. automodule:: tastypie.throttle
:members:
3 changes: 2 additions & 1 deletion tastypie/constants.py
@@ -1,3 +1,4 @@
# For filtering...
#: Enable all basic ORM filters but do not allow filtering across relationships
ALL = 1
#: Enable all ORM filters, including across relationships
ALL_WITH_RELATIONS = 2

0 comments on commit ffa0ec8

Please sign in to comment.