Commit c5dd21c8 authored by Cresson Remi's avatar Cresson Remi
Browse files

DOC: update doc script

1 merge request!36Replace pydoc
Pipeline #36126 failed with stages
in 2 minutes and 10 seconds
Showing with 5 additions and 4 deletions
+5 -4
...@@ -8,7 +8,11 @@ nav = mkdocs_gen_files.Nav() ...@@ -8,7 +8,11 @@ nav = mkdocs_gen_files.Nav()
processed_paths = ["apps", "scenes"] 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("") module_path = path.relative_to(".").with_suffix("")
doc_path = path.relative_to(".").with_suffix(".md") doc_path = path.relative_to(".").with_suffix(".md")
full_doc_path = Path("reference", doc_path) full_doc_path = Path("reference", doc_path)
...@@ -19,9 +23,6 @@ for path in sorted(Path(".").rglob("*.py")): ...@@ -19,9 +23,6 @@ for path in sorted(Path(".").rglob("*.py")):
parts = tuple(module_path.parts) parts = tuple(module_path.parts)
print(f"parts: {parts}") print(f"parts: {parts}")
if parts[0] not in processed_paths:
print("--> Ignored")
continue
if parts[-1] == "__init__": if parts[-1] == "__init__":
if len(parts) <= 1: if len(parts) <= 1:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment