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:
roland
2010-01-06 18:14:48 +01:00
parent 6ced1ce311
commit 97fea89ac2
+2 -1
View File
@@ -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,