You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/10/24 08:18:12 UTC
[airflow] branch main updated: change latest to stable to fix broken documentation links (#35143)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new dcb72b5a46 change latest to stable to fix broken documentation links (#35143)
dcb72b5a46 is described below
commit dcb72b5a4661223c9de7beea40264a152298f24b
Author: Aadya <10...@users.noreply.github.com>
AuthorDate: Tue Oct 24 13:48:05 2023 +0530
change latest to stable to fix broken documentation links (#35143)
---
airflow/utils/docs.py | 2 +-
chart/README.md | 2 +-
tests/utils/test_docs.py | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/airflow/utils/docs.py b/airflow/utils/docs.py
index 0cfcf444c0..478904e4b9 100644
--- a/airflow/utils/docs.py
+++ b/airflow/utils/docs.py
@@ -28,7 +28,7 @@ def get_docs_url(page: str | None = None) -> str:
if any(suffix in version for suffix in ["dev", "a", "b"]):
result = (
- "http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/apache-airflow/latest/"
+ "http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/apache-airflow/stable/"
)
else:
result = f"https://airflow.apache.org/docs/apache-airflow/{version}/"
diff --git a/chart/README.md b/chart/README.md
index 3374dc248e..39145c3856 100644
--- a/chart/README.md
+++ b/chart/README.md
@@ -54,7 +54,7 @@ cluster using the [Helm](https://helm.sh) package manager.
Full documentation for Helm Chart (latest **stable** release) lives [on the website](https://airflow.apache.org/docs/helm-chart/).
-> Note: If you're looking for documentation for main branch (latest development branch): you can find it on [s.apache.org/airflow-docs/](http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/helm-chart/latest/index.html).
+> Note: If you're looking for documentation for main branch (latest development branch): you can find it on [s.apache.org/airflow-docs/](http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/helm-chart/stable/index.html).
> Source code for documentation is in [../docs/helm-chart](https://github.com/apache/airflow/tree/main/docs/helm-chart)
>
diff --git a/tests/utils/test_docs.py b/tests/utils/test_docs.py
index 0ea06754a2..9db4edaaea 100644
--- a/tests/utils/test_docs.py
+++ b/tests/utils/test_docs.py
@@ -31,13 +31,13 @@ class TestGetDocsUrl:
"2.0.0.dev0",
None,
"http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/"
- "apache-airflow/latest/",
+ "apache-airflow/stable/",
),
(
"2.0.0.dev0",
- "migration.html",
+ "migrations-ref.html",
"http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/"
- "apache-airflow/latest/migration.html",
+ "apache-airflow/stable/migrations-ref.html",
),
("1.10.10", None, "https://airflow.apache.org/docs/apache-airflow/1.10.10/"),
(