mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Closes #1233: Allow finding both Python classes and exceptions with the "class" and "exc" roles in intersphinx.
This commit is contained in:
1 parent
aac72f175a
commit
12b3b49f22
2 files changed
+5
-2
No files matched your search
@@ -66,6 +66,9 @@ Bugs fixed
|
|||||||
|
|
||||||
* #1155: Fix autodocumenting C-defined methods as attributes in Python 3.
|
* #1155: Fix autodocumenting C-defined methods as attributes in Python 3.
|
||||||
|
|
||||||
|
* #1233: Allow finding both Python classes and exceptions with the "class" and
|
||||||
|
"exc" roles in intersphinx.
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@@ -559,8 +559,8 @@ class PythonDomain(Domain):
|
|||||||
object_types = {
|
object_types = {
|
||||||
'function': ObjType(l_('function'), 'func', 'obj'),
|
'function': ObjType(l_('function'), 'func', 'obj'),
|
||||||
'data': ObjType(l_('data'), 'data', 'obj'),
|
'data': ObjType(l_('data'), 'data', 'obj'),
|
||||||
'class': ObjType(l_('class'), 'class', 'obj'),
|
'class': ObjType(l_('class'), 'class', 'exc', 'obj'),
|
||||||
'exception': ObjType(l_('exception'), 'exc', 'obj'),
|
'exception': ObjType(l_('exception'), 'exc', 'class', 'obj'),
|
||||||
'method': ObjType(l_('method'), 'meth', 'obj'),
|
'method': ObjType(l_('method'), 'meth', 'obj'),
|
||||||
'classmethod': ObjType(l_('class method'), 'meth', 'obj'),
|
'classmethod': ObjType(l_('class method'), 'meth', 'obj'),
|
||||||
'staticmethod': ObjType(l_('static method'), 'meth', 'obj'),
|
'staticmethod': ObjType(l_('static method'), 'meth', 'obj'),
|
||||||
|
|||||||
Reference in new issue
Block a user