@monkey(sphinx.environment.BuildEnvironment)
def resolve_toctree(old_resolve, self, docname, *args, **kwargs):
 navbar = kwargs.pop('navbar', None)
 if ((docname == self.config.master_doc) and (not navbar)):
  return resolve_content_toctree(self, docname, *args, **kwargs)
 toc = old_resolve(self, docname, *args, **kwargs)
 if (toc is None):
  return None
 navbarify(toc[0], navbar=navbar)
 return toc

@ monkey ( sphinx . environment . BuildEnvironment ) def resolve_toctree ( old_resolve , self , docname , * args , ** kwargs ) : navbar = kwargs . pop ( 'navbar' , None ) if ( ( docname == self . config . master_doc ) and ( not navbar ) ) : return resolve_content_toctree ( self , docname , * args , ** kwargs ) toc = old_resolve ( self , docname , * args , ** kwargs ) if ( toc is None ) : return None navbarify ( toc [ 0 ] , navbar = navbar ) return toc
if navbar .