Commits

Georg Brandl committed 0a24f8f

#172: The ``obj`` role now links to modules as promised.

  • Participants
  • Parent commits 2d97537

Comments (0)

Files changed (2)

 Release 0.6.2 (in development)
 ==============================
 
+* #172: The ``obj`` role now links to modules as promised.
+
 * #19: Tables now can have a "longtable" class, in order to get
   correctly broken into pages in LaTeX output.
 

File sphinx/environment.py

                             newnode['refuri'] = builder.get_relative_uri(
                                 fromdocname, docname, typ) + '#' + labelid
                         newnode.append(contnode)
-                elif typ == 'mod':
+                elif typ == 'mod' or \
+                         typ == 'obj' and target in self.modules:
                     docname, synopsis, platform, deprecated = \
                         self.modules.get(target, ('','','', ''))
                     if not docname: