zopeext for Sphinx

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.

System Message: ERROR/3 (README.rst, line 14); backlink

Unknown interpreted text role "rst:dir".

Requirements

Usage

In the build configuration file (the conf.py in your Sphinx documentation directory) add :mod:`sphinxcontrib.zopeext.autointerface` to your extensions list:

System Message: ERROR/3 (README.rst, line 27); backlink

Unknown interpreted text role "mod".
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):

System Message: ERROR/3 (README.rst, line 34); backlink

Unknown interpreted text role "rst:dir".

System Message: ERROR/3 (README.rst, line 34); backlink

Unknown interpreted text role "rst:dir".

System Message: ERROR/3 (README.rst, line 38)

Unknown directive type "autointerface".

.. autointerface:: sphinxcontrib.zopeext.example.IMyInterface

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; }