Add missing option_spec for Python domain.

This commit is contained in:
Georg Brandl 2010-02-28 09:21:24 +01:00
parent 452732a0f3
commit c2289a17b5
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,10 @@ class PyObject(ObjectDescription):
"""
Description of a general Python object.
"""
option_spec = {
'noindex': directives.flag,
'module': directives.unchanged,
}
doc_field_types = [
TypedField('parameter', label=l_('Parameters'),

View File

@ -10,6 +10,8 @@ Testing object descriptions
.. function:: func_noindex
:noindex:
.. function:: func_with_module
:module: foolib
.. module:: mod
:synopsis: Module synopsis.