1
Index: python-gevent/doc/mysphinxext.py
2
===================================================================
3
--- python-gevent.orig/doc/mysphinxext.py 2010-07-22 16:01:01.000000000 +0200
4
+++ python-gevent/doc/mysphinxext.py 2010-07-22 16:01:09.000000000 +0200
8
target = node['reftarget']
9
- modname = node['modname']
10
- classname = node['classname']
11
+ if node.has_key('py:module'):
12
+ modname = node['py:module']
13
+ classname = node['py:class']
15
+ modname = node['modname']
16
+ classname = node['classname']
18
if modname and classname:
21
newnode = nodes.reference('', '')
22
newnode['refuri'] = refuri
23
newnode['reftitle'] = reftitle
24
- newnode['class'] = 'external-xref'
25
+ newnode['py:class'] = 'external-xref'
26
+ newnode['classname'] = 'external-xref'
27
newnode.append(contnode)
28
msg = 'Resolved missing-reference: :%5s:`%s` -> %s' % (type, target, refuri)
29
if noisy >= 1 or msg not in message_cache: