mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Ignore "self" and URL in toctree
This commit is contained in:
parent
2f5ea82b37
commit
ba5a42c504
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user