hussein-awala commented on code in PR #32632: URL: https://github.com/apache/airflow/pull/32632#discussion_r1264706552
########## docs/exts/operators_and_hooks_ref.py: ########## @@ -341,10 +204,24 @@ def render_content(self, *, tags: set[str] | None, header_separator: str = DEFAU raise NotImplementedError("Tou need to override render_content method.") +def _common_render_list_content(*, header_separator: str, resource_type: str, template: str): + tabular_data = { + provider["package-name"]: { + "name": provider["name"], + resource_type: provider.get(resource_type, []), + } + for provider in load_package_data() + if provider.get(resource_type) is not None + } + return _render_template(template, items=tabular_data, header_separator=header_separator) + Review Comment: Amazing! -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org