Skip to content

Commit

Permalink
✨ Support globstar
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Sep 2, 2023
1 parent 26483ea commit f9ad788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sphinxcontrib/requirements_txt/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run(self) -> list[Node]:
file = os.path.join(os.path.dirname(path), content)
fmt = self.options.get("title", self.config["requirements_title"])
new_contents = []
for filename in glob(file):
for filename in glob(file, recursive=True):
title = os.path.basename(filename).split(os.path.extsep)[0]
if fmt.find("{title}") >= 0:
title = fmt.format(title=title)
Expand Down

0 comments on commit f9ad788

Please sign in to comment.