summaryrefslogtreecommitdiff
path: root/sphinx/directives
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-07-17 21:53:12 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-07-17 21:53:12 +0100
commita4d41aa889388bf8ee2815d4819235b5ca978a8d (patch)
tree67763bc78a88f0114ff22e50f8419213dc0ff4ef /sphinx/directives
parent1e3ade55fe24107c883fc2725ecab28350e3f6cb (diff)
parentaa47f5d53aa3327aa0acf2aeb25996b3b3ba6898 (diff)
downloadsphinx-git-a4d41aa889388bf8ee2815d4819235b5ca978a8d.tar.gz
Merge branch '5.x'
Diffstat (limited to 'sphinx/directives')
-rw-r--r--sphinx/directives/other.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index 083fa088a..38a332674 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -84,7 +84,7 @@ class TocTree(SphinxDirective):
all_docnames.remove(self.env.docname) # remove current document
ret: List[Node] = []
- excluded = Matcher(self.config.exclude_patterns)
+ excluded = Matcher(self.config.exclude_patterns, self.config.include_patterns)
for entry in self.content:
if not entry:
continue