stevepiercy / repoze.sphinx.autointerface

Auto-generate Sphinx API docs from Zope interfaces

Home Page:http://pypi.python.org/pypi/repoze.sphinx.autointerface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repoze.sphinx.autointerface README

https://travis-ci.org/repoze/repoze.sphinx.autointerface.png?branch=master

Overview

Thie package defines an extension for the Sphinx documentation system. The extension allows generation of API documentation by introspection of zope.interface instances in code.

Installation

Install via easy_install:

$ 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 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

At appropriate points in your document, call out the interface autodocs via:

.. autointerface:: yourpackage.interfaces.IFoo

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).

About

Auto-generate Sphinx API docs from Zope interfaces

http://pypi.python.org/pypi/repoze.sphinx.autointerface

License:Other


Languages

Language:Python 100.0%