Skip to content

Commit

Permalink
feat: use rglob to fetch bib files (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomzoy authored Mar 14, 2023
1 parent ef4df1f commit 7ecc0ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocs_bibtex/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def on_config(self, config):
else:
bibfiles.append(self.config["bib_file"])
elif self.config.get("bib_dir", None) is not None:
bibfiles.extend(Path(self.config["bib_dir"]).glob("*.bib"))
bibfiles.extend(Path(self.config["bib_dir"]).rglob("*.bib"))
else: # pragma: no cover
raise Exception("Must supply a bibtex file or directory for bibtex files")

Expand Down
File renamed without changes.

0 comments on commit 7ecc0ae

Please sign in to comment.