Fix #2700: HtmlHelp builder has hard coded index.html

This commit is contained in:
Takeshi KOMIYA 2016-06-24 12:35:44 +09:00
parent 04723c1175
commit bf692e2f34
2 changed files with 6 additions and 4 deletions

View File

@ -29,6 +29,7 @@ Bugs fixed
* #2671: image directive may lead to inconsistent spacing in pdf
* #2705: `toctree` generates empty bullet_list if ``:titlesonly:`` specified
* #2479: `sphinx.ext.viewcode` uses python2 highlighter by default
* #2700: HtmlHelp builder has hard coded index.html
Release 1.4.4 (released Jun 12, 2016)

View File

@ -63,7 +63,7 @@ Binary Index=No
Compiled file=%(outname)s.chm
Contents file=%(outname)s.hhc
Default Window=%(outname)s
Default topic=index.html
Default topic=%(master_doc)s
Display compile progress=No
Full text search stop list file=%(outname)s.stp
Full-text search=Yes
@ -73,7 +73,7 @@ Title=%(title)s
[WINDOWS]
%(outname)s="%(title)s","%(outname)s.hhc","%(outname)s.hhk",\
"index.html","index.html",,,,,0x63520,220,0x10384e,[0,0,1024,768],,,,,,,0
"%(master_doc)s","%(master_doc)s",,,,,0x63520,220,0x10384e,[0,0,1024,768],,,,,,,0
[FILES]
'''
@ -212,7 +212,8 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
'title': self.config.html_title,
'version': self.config.version,
'project': self.config.project,
'lcid': self.lcid})
'lcid': self.lcid,
'master_doc': self.config.master_doc + self.out_suffix})
if not outdir.endswith(os.sep):
outdir += os.sep
olen = len(outdir)
@ -232,7 +233,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
f.write(contents_header)
# special books
f.write('<LI> ' + object_sitemap % (self.config.html_short_title,
'index.html'))
self.config.master_doc + self.out_suffix))
for indexname, indexcls, content, collapse in self.domain_indices:
f.write('<LI> ' + object_sitemap % (indexcls.localname,
'%s.html' % indexname))