Skip to content

Commit

Permalink
More documentation fixes; prep 0.1.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Oct 3, 2008
1 parent dba1e0e commit 0ef3a0f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
@@ -1,6 +1,11 @@
repoze.sphinx.autointerface Changelog
=====================================

0.1.2 (2008-10-03)
------------------

- Packaging change: improved description in README.txt.

0.1.1 (2008-10-03)
------------------

Expand Down
38 changes: 32 additions & 6 deletions README.txt
Expand Up @@ -5,19 +5,34 @@ Overview
--------

Thie package defines an extension for the
`Sphinx <http://sphinx.pocool.org>`_ documentation system.
`Sphinx <http://sphinx.pocool.org>`_ documentation system. The extension
allows generation of API documentation by introspection of
`zope.interface <http://pypi.python.org/pypi/zope.interface>`_ instances in
code.


Installation
------------

Install via ``easy_install`` or any other mechanism to get the
package on the path.
Install via `easy_install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_::

$ bin/easy_install repoze.sphinx.autointerface

or any other means which gets the package on your ``PYTHONPATH``.


Registering the Extension
-------------------------

Add ``repoze.sphinx.autointerface`` to the ``conf.py`` of the docs
section of your product.
Add ``repoze.sphinx.autointerface`` to the ``extensions`` list in the
``conf.py`` of the Sphinx documentation for your product. E.g.::

extensions = ['sphinx.ext.autodoc',
'sphinx.ext.doctest',
'repoze.sphinx.autointerface',
]


Using the Extension
-------------------
Expand All @@ -26,4 +41,15 @@ At appropriate points in your document, call out the interface
autodocs via::

.. autoinclude:: yourpackage.interfaces.IFoo
:members:

Output from the directive includes

- the fully-qualified interface name
- any base interfaces
- the doctstring from the interface, rendered as reSTX.
- the members of the interface (methods and attributes).

* For each attribute, the output includes the attribute name
and its description.
* For each method, the output includes the method name, its signature,
and its docstring (also rendered as reSTX).

0 comments on commit 0ef3a0f

Please sign in to comment.