Sphinx extension: auto-generates API docs from Zope interfaces
Project description
repoze.sphinx.autointerface README
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).
repoze.sphinx.autointerface Changelog
0.8 (2016-03-28)
Add support for Python 3.3, 3.4, and 3.5.
Drop support for Python 2.6 and 3.2.
Allow cross references using the :class: directive to use the . for “fuzzy” searching. Thanks to Jason Madden for the patch.
0.7.1 (2012-09-15)
Remove setup.py dependency on ez_setup.py.
0.7.0 (2012-06-20)
PyPy compatibility.
Python 3.2+ compatibility. Thanks to Arfrever for the patch.
Include interface docs under the automodule directive. Thanks to Krys Lawrence for the patch.
0.6.2 (2011-02-13)
Fix TypeError: 'NoneType' object is not iterable error when generating a rendering of an interface under Python 2.7.
0.6.1 (2011-01-28)
Fix ‘:member-order: bysource’ handling.
0.6 (2011-01-28)
Correctly handle ‘:members:’ values explicitly set in the directive.
0.5 (2011-01-18)
Added support for the ‘:member-order:’ flag, which can take one of the three stock values, “alphabetical”, “groupwise”, or “bysource”. By default, members are documented in “hash” order.
0.4 (2010-07-26)
Fixed compatibility with Sphinx 1.0
Un-break PyPI ReST/HTML-rendering again.
0.3 (2009-10-25)
Refactor sphinx integration. There are now separate autointerface and interface directives.
0.2.1 (2009-08-20)
Fix add_directive arguments to work with Sphinx 0.6.1, now required.
0.1.3 (2009-01-14)
Coerce unicode path elements to str in _resolve_dotted_name. Note that non-ASCII path elements won’t work: this fix just deals with the case where the path was of type unicode.
Fixed spelling of directive in README.txt.
Added dependency on zope.interface.
0.1.2 (2008-10-03)
Packaging change: improved description in README.txt.
0.1.1 (2008-10-03)
Packaging bug: the long_description was not rendering properly to HTML on PyPI.
0.1 (2008-10-02)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for repoze.sphinx.autointerface-0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef0383276ab722efb1e4a6523726262058dfd82615ccf7e5004aee3fe8ecc23 |
|
MD5 | 8e05cb8421b0a3bea8ec3b0aa3695310 |
|
BLAKE2b-256 | 8f65ea18d09c6847b3a381e16c89f26de0ddcdf0bdb8d05f4581e4df9b7033fd |
Hashes for repoze.sphinx.autointerface-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f917d32961e7f735819e39569ab8c21693d2b1958685f5f061d9019f14ff58 |
|
MD5 | b48c6372fa64b530980ab4f607048061 |
|
BLAKE2b-256 | a10eb1f7e283866c2f82b882c949fec3bac6bab9bc8991cc8bb7a9ca31530968 |
Hashes for repoze.sphinx.autointerface-0.8-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6cd14412676354680715622c71bec0215d6a46b655e7b270484d4f016950184 |
|
MD5 | fba795a0aec34c4246bca80e800444b0 |
|
BLAKE2b-256 | a1b20839c397419f90dbbf395fee57920a3d46a0892de2ac87ff0a10e7565abd |