'Return the global TOC nodetree.'

def get_toctree_for(self, docname, builder, collapse, **kwds):

    warnings.warn('env.get_toctree_for()    is    deprecated.    Use    sphinx.environment.adapters.toctre.TocTree    instead.', RemovedInSphinx20Warning)
    return TocTree(self).get_toctree_for(docname, builder, collapse, **kwds)
