From 3857ad78cd4caa9b78ca17a90f2d29d75fa77d0e Mon Sep 17 00:00:00 2001 From: OpenSauce <48618519+OpenSauce04@users.noreply.github.com> Date: Sun, 19 Feb 2023 11:25:45 +0000 Subject: [PATCH] Add .luadoc file extension support --- sphinx_lua/luadoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_lua/luadoc.py b/sphinx_lua/luadoc.py index b5b5746..4654a21 100644 --- a/sphinx_lua/luadoc.py +++ b/sphinx_lua/luadoc.py @@ -19,7 +19,7 @@ def run_luadoc(app): else: for root, subdirs, files in os.walk(source_dir): for filename in files: - if filename.endswith('lua'): + if filename.endswith(('lua', 'luadoc')): filepath = os.path.join(root, filename) filenames.append(filepath)