From bca0c418d60e8766ef456ea643cb944067b7f2ca Mon Sep 17 00:00:00 2001 From: Jared Dillard Date: Sun, 18 May 2025 13:50:29 -0700 Subject: [PATCH] Make glob pattern recursive (#13) --- sphinx_llms_txt/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_llms_txt/manager.py b/sphinx_llms_txt/manager.py index 7c86ded..7978fd0 100644 --- a/sphinx_llms_txt/manager.py +++ b/sphinx_llms_txt/manager.py @@ -106,7 +106,7 @@ class LLMSFullManager: # Collect all available source files txt_files = {} - for f in sources_dir.glob("*.txt"): + for f in sources_dir.glob("**/*.txt"): logger.debug(f"sphinx-llms-txt: Found source file: {f.stem} at {f}") txt_files[f.stem] = f