mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Include full toctree in get_toc.
See also http://bitbucket.org/rolmei/sphinx-epub/issue/2/missing-files-in-spine
This commit is contained in:
@@ -188,7 +188,8 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
||||
def get_toc(self):
|
||||
"""Get the total table of contents, containg the master_doc
|
||||
and pre and post files not managed by sphinx"""
|
||||
doctree = self.env.get_and_resolve_doctree(self.config.master_doc, self)
|
||||
doctree = self.env.get_and_resolve_doctree(self.config.master_doc,
|
||||
self, prune_toctrees=False)
|
||||
self.refnodes = self.get_refnodes(doctree, [])
|
||||
self.refnodes.insert(0, {
|
||||
'level': 1,
|
||||
|
||||
Reference in New Issue
Block a user