hussein-awala commented on code in PR #36664:
URL: https://github.com/apache/airflow/pull/36664#discussion_r1445398145
##########
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 don't know how do we use this file, but it would be better to avoid the
redundancy of these variables.
--
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]