Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated BuildEnvironment.create_index() #782

Merged
merged 1 commit into from Jun 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion rst2pdf/pdfbuilder.py
Expand Up @@ -55,6 +55,7 @@
from sphinx.util import SEP
from sphinx.util import ustrftime
from sphinx.environment import NoUri
from sphinx.environment.adapters.indexentries import IndexEntries
from sphinx.locale import admonitionlabels, versionlabels
if sphinx.__version__ >= '1.':
from sphinx.locale import _
Expand Down Expand Up @@ -212,7 +213,7 @@ def process_tree(docname, tree):
self.env.indexentries={}
for dname in self.docnames:
self.env.indexentries[dname]=t.get(dname,[])
genindex = self.env.create_index(self)
genindex = IndexEntries(self.env).create_index(self)
self.env.indexentries=t
# EOH (End Of Hack)

Expand Down