Lee-W commented on code in PR #71477:
URL: https://github.com/apache/airflow/pull/71477#discussion_r4045686881


##########
dev/registry/extract_parameters.py:
##########
@@ -453,6 +455,16 @@ def _resolve_dotted_path(class_path: str) -> tuple[str, 
str, object] | None:
     return module_path, name, obj
 
 
+def read_guide_docs(docs_dir: Path) -> dict[str, str]:
+    """Read a provider's authored reST docs from the working tree, keyed by 
path relative to ``docs_dir``."""
+    if not docs_dir.is_dir():
+        return {}
+    return {
+        path.relative_to(docs_dir).as_posix(): path.read_text(encoding="utf-8")
+        for path in sorted(docs_dir.rglob("*.rst"))

Review Comment:
   drops paths with `_` prefix, `changelog.rst` and `commits.rst` 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to