diff options
Diffstat (limited to 'sphinx/builders/html.py')
-rw-r--r-- | sphinx/builders/html.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 5c3d9601e..062c56669 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -46,6 +46,7 @@ from sphinx.util.console import bold, darkgreen # type: ignore from sphinx.writers.html import HTMLWriter, HTMLTranslator, \ SmartyPantsHTMLTranslator from sphinx.environment.adapters.toctree import TocTree +from sphinx.environment.adapters.indexentries import IndexEntries if False: # For type annotation @@ -542,7 +543,7 @@ class StandaloneHTMLBuilder(Builder): # type: () -> None # the total count of lines for each index letter, used to distribute # the entries into two columns - genindex = self.env.create_index(self) + genindex = IndexEntries(self.env).create_index(self) indexcounts = [] for _k, entries in genindex: indexcounts.append(sum(1 + len(subitems) |