mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add missing option_spec for Python domain.
This commit is contained in:
parent
452732a0f3
commit
c2289a17b5
@ -40,6 +40,10 @@ class PyObject(ObjectDescription):
|
|||||||
"""
|
"""
|
||||||
Description of a general Python object.
|
Description of a general Python object.
|
||||||
"""
|
"""
|
||||||
|
option_spec = {
|
||||||
|
'noindex': directives.flag,
|
||||||
|
'module': directives.unchanged,
|
||||||
|
}
|
||||||
|
|
||||||
doc_field_types = [
|
doc_field_types = [
|
||||||
TypedField('parameter', label=l_('Parameters'),
|
TypedField('parameter', label=l_('Parameters'),
|
||||||
|
@ -10,6 +10,8 @@ Testing object descriptions
|
|||||||
.. function:: func_noindex
|
.. function:: func_noindex
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
|
.. function:: func_with_module
|
||||||
|
:module: foolib
|
||||||
|
|
||||||
.. module:: mod
|
.. module:: mod
|
||||||
:synopsis: Module synopsis.
|
:synopsis: Module synopsis.
|
||||||
|
Loading…
Reference in New Issue
Block a user