diff options
| author | Georg Brandl <georg@python.org> | 2009-01-26 22:44:38 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-01-26 22:44:38 +0100 |
| commit | 5e74fc0f9acb5b2076d43d886e83b23c5cb0a046 (patch) | |
| tree | 14f6bc260a2777e651ce7abb59c6ab5f76684dac /doc/ext | |
| parent | bb71945aa4e0ab85be000858a05616f72a4ed2a3 (diff) | |
| parent | cfbfe8dc82f25bddfb6ec8a27fa78fd01c56c70a (diff) | |
| download | sphinx-5e74fc0f9acb5b2076d43d886e83b23c5cb0a046.tar.gz | |
merge with trunk
Diffstat (limited to 'doc/ext')
| -rw-r--r-- | doc/ext/appapi.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ext/appapi.rst b/doc/ext/appapi.rst index 84978da3..218c561b 100644 --- a/doc/ext/appapi.rst +++ b/doc/ext/appapi.rst @@ -86,6 +86,13 @@ the following public API: source, *role* the role function (see the `Docutils documentation <http://docutils.sourceforge.net/docs/howto/rst-roles.html>`_ on details). +.. method:: Sphinx.add_generic_role(name, nodeclass) + + Register a Docutils role that does nothing but wrap its contents in the + node given by *nodeclass*. + + .. versionadded:: 0.6 + .. method:: Sphinx.add_description_unit(directivename, rolename, indextemplate='', parse_node=None, ref_nodeclass=None) This method is a very convenient way to add a new type of information that |
