Closes #1623: Return types specified with `:rtype:` are now turned into links if possible.

This commit is contained in:
Georg Brandl
2014-11-12 11:32:21 +01:00
parent 09d2c399d3
commit 6c194ad56f
6 changed files with 49 additions and 24 deletions

View File

@@ -200,6 +200,9 @@ HTML_XPATH = {
(".//dl[@class='userdesc']", ''),
(".//dt[@id='userdesc-myobj']", ''),
(".//a[@href='#userdesc-myobj'][@class='reference internal']", ''),
# docfields
(".//a[@class='reference internal'][@href='#TimeInt']/em", 'TimeInt'),
(".//a[@class='reference internal'][@href='#Time']", 'Time'),
# C references
(".//span[@class='pre']", 'CFunction()'),
(".//a[@href='#c.Sphinx_DoSomething']", ''),