summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-11 00:15:34 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-28 20:43:54 +0900
commite2c7b1db4206542c72e0dfbfc78bae9a8d153dfd (patch)
tree9a014aff0077ee9408da986e7bf6946a8920de33 /sphinx/builders/htmlhelp.py
parent0b0637deb2f093de80de102348de6c89fe432e11 (diff)
downloadsphinx-git-e2c7b1db4206542c72e0dfbfc78bae9a8d153dfd.tar.gz
Add IndexEntries adapter
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r--sphinx/builders/htmlhelp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index 08e6f9df4..68fd3b1db 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -19,6 +19,7 @@ from docutils import nodes
from sphinx import addnodes
from sphinx.builders.html import StandaloneHTMLBuilder
+from sphinx.environment.adapters.indexentries import IndexEntries
from sphinx.util import logging
from sphinx.util.osutil import make_filename
from sphinx.util.pycompat import htmlescape
@@ -281,7 +282,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
f.write(contents_footer)
logger.info('writing index file...')
- index = self.env.create_index(self)
+ index = IndexEntries(self.env).create_index(self)
with self.open_file(outdir, outname + '.hhk') as f:
f.write('<UL>\n')