diff options
| -rw-r--r-- | sphinx/directives/other.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index f1d67a3c..bc9a54df 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -89,7 +89,9 @@ class TocTree(Directive): % entry, line=self.lineno)) subnode = addnodes.toctree() subnode['parent'] = env.docname + # entries contains all entries (self references, external links etc.) subnode['entries'] = entries + # includefiles only entries that are documents subnode['includefiles'] = includefiles subnode['maxdepth'] = self.options.get('maxdepth', -1) subnode['glob'] = glob |
