summaryrefslogtreecommitdiff
path: root/sphinx/htmlhelp.py
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-05-31 22:52:42 +0000
committergeorg.brandl <devnull@localhost>2008-05-31 22:52:42 +0000
commita9e74473ab26776bd596360dcf373d96cddb7f16 (patch)
treee6cc375f8117cc47e29fbac155db4868dca6c5e6 /sphinx/htmlhelp.py
parentb175e28e8942c0fd2fd37156f953f45761dcfe87 (diff)
downloadsphinx-a9e74473ab26776bd596360dcf373d96cddb7f16.tar.gz
More logical "next"/"previous" links.
Diffstat (limited to 'sphinx/htmlhelp.py')
-rw-r--r--sphinx/htmlhelp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/htmlhelp.py b/sphinx/htmlhelp.py
index 957821c1..a3ace5dd 100644
--- a/sphinx/htmlhelp.py
+++ b/sphinx/htmlhelp.py
@@ -184,6 +184,7 @@ def build_hhx(builder, outdir, outname):
f.close()
builder.info('writing index file...')
+ index = builder.env.create_index(builder)
f = open(path.join(outdir, outname+'.hhk'), 'w')
try:
f.write('<UL>\n')
@@ -199,7 +200,7 @@ def build_hhx(builder, outdir, outname):
for subitem in subitems:
write_index(subitem[0], subitem[1], [])
f.write('</UL>')
- for (key, group) in builder.env.index:
+ for (key, group) in index:
for title, (refs, subitems) in group:
write_index(title, refs, subitems)
f.write('</UL>\n')