diff --git a/doc/gen_ref_pages.py b/doc/gen_ref_pages.py
index e731f3d3af78efcdb5c873ab49450884c4704586..fed31c07442edd2d2c1d320cda2075fe6b0b8236 100755
--- a/doc/gen_ref_pages.py
+++ b/doc/gen_ref_pages.py
@@ -8,7 +8,11 @@ nav = mkdocs_gen_files.Nav()
 
 processed_paths = ["apps", "scenes"]
 
-for path in sorted(Path(".").rglob("*.py")):
+paths = []
+for processed_path in processed_paths:
+    paths += Path(processed_path).rglob("*.py")
+    
+for path in paths:
     module_path = path.relative_to(".").with_suffix("")
     doc_path = path.relative_to(".").with_suffix(".md")
     full_doc_path = Path("reference", doc_path)
@@ -19,9 +23,6 @@ for path in sorted(Path(".").rglob("*.py")):
 
     parts = tuple(module_path.parts)
     print(f"parts: {parts}")
-    if parts[0] not in processed_paths:
-        print("--> Ignored")
-        continue
 
     if  parts[-1] == "__init__":
         if len(parts) <= 1: