mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1233: Allow finding both Python classes and exceptions with the "class" and "exc" roles in intersphinx.
This commit is contained in:
parent
aac72f175a
commit
12b3b49f22
3
CHANGES
3
CHANGES
@ -66,6 +66,9 @@ Bugs fixed
|
||||
|
||||
* #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
|
||||
-------------
|
||||
|
||||
|
@ -559,8 +559,8 @@ class PythonDomain(Domain):
|
||||
object_types = {
|
||||
'function': ObjType(l_('function'), 'func', 'obj'),
|
||||
'data': ObjType(l_('data'), 'data', 'obj'),
|
||||
'class': ObjType(l_('class'), 'class', 'obj'),
|
||||
'exception': ObjType(l_('exception'), 'exc', 'obj'),
|
||||
'class': ObjType(l_('class'), 'class', 'exc', 'obj'),
|
||||
'exception': ObjType(l_('exception'), 'exc', 'class', 'obj'),
|
||||
'method': ObjType(l_('method'), 'meth', 'obj'),
|
||||
'classmethod': ObjType(l_('class method'), 'meth', 'obj'),
|
||||
'staticmethod': ObjType(l_('static method'), 'meth', 'obj'),
|
||||
|
Loading…
Reference in New Issue
Block a user