This package was forked from https://bitbucket.org/birkenfeld/sphinx-contrib by Jim Fulton until this pull request is resolved: https://bitbucket.org/birkenfeld/sphinx-contrib/pull-requests/126/fixes-based-on-using-the-extension-with/diff
author: | Michael McNeil Forbes <mforbes@alum.mit.edu> |
---|---|
author: | Jim Fulton <jim@jimfulton.info> |
This sphinx extension provides an :rst:dir:`autointerface` directive for Zope interfaces.
In the build configuration file (the conf.py in your Sphinx documentation directory) add :mod:`sphinxcontrib.zopeext.autointerface` to your extensions list:
extensions = [..., 'sphinxcontrib.zopeext.autointerface', ...]
Then, in your documentation, use :rst:dir:`autointerface` as you would use :rst:dir:`autoclass`. Here is an example (click on the "[source]" link at the right to see the code):
Note
We have included the autointerface.css which simply adds the following rule to give a green background for the interface:
dl.interface > dt { background-color: #33FF33; }