Ignore "self" and URL in toctree

This commit is contained in:
tk0miya 2014-08-21 09:54:57 +09:00
parent 2f5ea82b37
commit ba5a42c504

View File

@ -1730,6 +1730,10 @@ class BuildEnvironment:
continue
elif isinstance(subnode, addnodes.toctree):
for title, subdocname in subnode['entries']:
if url_re.match(subdocname) or subdocname == 'self':
# don't mess with those
continue
_walk_doc(subdocname, secnum)
continue