vincbeck commented on code in PR #36664:
URL: https://github.com/apache/airflow/pull/36664#discussion_r1446711380


##########
docs/conf.py:
##########
@@ -832,6 +832,25 @@ def _get_params(root_schema: dict, prefix: str = "", 
default_section: str = "")
     # Options for script updater
     redoc_script_url = 
"https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js";
 
+elif PACKAGE_NAME == "apache-airflow-providers-fab":
+    OPENAPI_FILE = os.path.join(
+        os.path.dirname(__file__), "..", "airflow", "providers", "fab", 
"auth_manager", "openapi", "v1.yaml"
+    )
+    redoc = [
+        {
+            "name": "Fab provider REST API",
+            "page": "stable-rest-api-ref",
+            "spec": OPENAPI_FILE,
+            "opts": {
+                "hide-hostname": True,
+                "no-auto-auth": True,
+            },
+        },
+    ]
+
+    # Options for script updater
+    redoc_script_url = 
"https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js";

Review Comment:
   I could do it for `redoc_script_url ` but the other are different from one 
provider to the other



-- 
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