Skip to content

Commit f9ad788

Browse files
committed
✨ Support globstar
1 parent 26483ea commit f9ad788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinxcontrib/requirements_txt/directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def run(self) -> list[Node]:
8888
file = os.path.join(os.path.dirname(path), content)
8989
fmt = self.options.get("title", self.config["requirements_title"])
9090
new_contents = []
91-
for filename in glob(file):
91+
for filename in glob(file, recursive=True):
9292
title = os.path.basename(filename).split(os.path.extsep)[0]
9393
if fmt.find("{title}") >= 0:
9494
title = fmt.format(title=title)

0 commit comments

Comments
 (0)