Commits

grasbauer committed bb57715

fix get_toc_for - thanks ukoma

Comments (0)

Files changed (1)

sphinxext/mainnavigation.py

        
        for docname in docnames:
           toc_name = recursive_hell(docname) or docname
-          doctree = self.env.get_toc_for(toc_name) 
+          doctree = self.env.get_toc_for(toc_name,self) 
           for toctreenode in doctree.traverse(addnodes.toctree):
              toc = self.env.resolve_toctree(docname, self, toctreenode) 
              local_toc[docname]=self.render_partial(toc)['fragment']