mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix DevHelp index entries too.
This commit is contained in:
parent
8fdeaec018
commit
21cfc46dc3
2
CHANGES
2
CHANGES
@ -1,7 +1,7 @@
|
|||||||
Release 1.1.1 (in development)
|
Release 1.1.1 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
* #791: Fix QtHelp and HtmlHelp index entry links.
|
* #791: Fix QtHelp, DevHelp and HtmlHelp index entry links.
|
||||||
|
|
||||||
* #792: Include "sphinx-apidoc" in the source distribution.
|
* #792: Include "sphinx-apidoc" in the source distribution.
|
||||||
|
|
||||||
|
@ -107,12 +107,12 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
|
|||||||
pass
|
pass
|
||||||
elif len(refs) == 1:
|
elif len(refs) == 1:
|
||||||
etree.SubElement(functions, 'function',
|
etree.SubElement(functions, 'function',
|
||||||
name=title, link=refs[0])
|
name=title, link=refs[0][1])
|
||||||
else:
|
else:
|
||||||
for i, ref in enumerate(refs):
|
for i, ref in enumerate(refs):
|
||||||
etree.SubElement(functions, 'function',
|
etree.SubElement(functions, 'function',
|
||||||
name="[%d] %s" % (i, title),
|
name="[%d] %s" % (i, title),
|
||||||
link=ref)
|
link=ref[1])
|
||||||
|
|
||||||
if subitems:
|
if subitems:
|
||||||
parent_title = re.sub(r'\s*\(.*\)\s*$', '', title)
|
parent_title = re.sub(r'\s*\(.*\)\s*$', '', title)
|
||||||
|
Loading…
Reference in New Issue
Block a user