This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-1-test by this push:
new 4863da2 Fix references link in Providers docs (#17286)
4863da2 is described below
commit 4863da2f1e02c57288b512bf2d775b847f639ec7
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Jul 28 16:47:23 2021 +0100
Fix references link in Providers docs (#17286)
fixes issue mentioned in
https://apache-airflow.slack.com/archives/C0146STM600/p1627475111055600
Corresponding Airflow site change:
https://github.com/apache/airflow-site/pull/458
If the docs are published 'for production' (i.e. to publish on stable doc
site) then we should use "stable" for Airflow version instead of "latest"
(cherry picked from commit 3650448301d3b2a31a4996e035f1b325148c8639)
---
docs/exts/airflow_intersphinx.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/exts/airflow_intersphinx.py b/docs/exts/airflow_intersphinx.py
index 1ae91bb..2c0e0eb 100644
--- a/docs/exts/airflow_intersphinx.py
+++ b/docs/exts/airflow_intersphinx.py
@@ -70,7 +70,7 @@ def _generate_provider_intersphinx_mapping():
airflow_mapping[pkg_name] = (
# base URI
- f'/docs/{pkg_name}/latest/',
+ f'/docs/{pkg_name}/{"stable" if for_production else "latest"}/',
(doc_inventory if os.path.exists(doc_inventory) else
cache_inventory,),
)
for pkg_name in ['apache-airflow-providers', 'docker-stack']: