mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix the HTML help builder.
This commit is contained in:
parent
8dc8280c3c
commit
92271705fd
@ -117,7 +117,7 @@ was will with
|
|||||||
|
|
||||||
|
|
||||||
def build_hhx(builder, outdir, outname):
|
def build_hhx(builder, outdir, outname):
|
||||||
builder.msg('dumping stopword list...')
|
builder.info('dumping stopword list...')
|
||||||
f = open(path.join(outdir, outname+'.stp'), 'w')
|
f = open(path.join(outdir, outname+'.stp'), 'w')
|
||||||
try:
|
try:
|
||||||
for word in sorted(stopwords):
|
for word in sorted(stopwords):
|
||||||
@ -125,7 +125,7 @@ def build_hhx(builder, outdir, outname):
|
|||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
builder.msg('writing project file...')
|
builder.info('writing project file...')
|
||||||
f = open(path.join(outdir, outname+'.hhp'), 'w')
|
f = open(path.join(outdir, outname+'.hhp'), 'w')
|
||||||
try:
|
try:
|
||||||
f.write(project_template % {'outname': outname,
|
f.write(project_template % {'outname': outname,
|
||||||
@ -141,7 +141,7 @@ def build_hhx(builder, outdir, outname):
|
|||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
builder.msg('writing TOC file...')
|
builder.info('writing TOC file...')
|
||||||
f = open(path.join(outdir, outname+'.hhc'), 'w')
|
f = open(path.join(outdir, outname+'.hhc'), 'w')
|
||||||
try:
|
try:
|
||||||
f.write(contents_header)
|
f.write(contents_header)
|
||||||
@ -177,7 +177,7 @@ def build_hhx(builder, outdir, outname):
|
|||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
builder.msg('writing index file...')
|
builder.info('writing index file...')
|
||||||
f = open(path.join(outdir, outname+'.hhk'), 'w')
|
f = open(path.join(outdir, outname+'.hhk'), 'w')
|
||||||
try:
|
try:
|
||||||
f.write('<UL>\n')
|
f.write('<UL>\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user