Skip to content

Commit

Permalink
Update URL for docs (#13561)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj committed Jan 9, 2021
1 parent e6eb5e7 commit 8ea0a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions airflow/www/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def create_app(config=None, testing=False):
models.XCom, Session, name="XComs", category="Admin"))

if "dev" in version.version:
airflow_doc_site = "https://airflow.readthedocs.io/en/latest"
airflow_doc_site = "https://s.apache.org/airflow-docs"
else:
airflow_doc_site = 'https://airflow.apache.org/docs/{}'.format(version.version)
airflow_doc_site = 'https://airflow.apache.org/docs/apache-airflow/{}'.format(version.version)

admin.add_link(base.MenuLink(
name="Website",
Expand Down
4 changes: 2 additions & 2 deletions airflow/www_rbac/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def init_views(appbuilder):
category="Admin")

if "dev" in version.version:
airflow_doc_site = "https://airflow.readthedocs.io/en/latest"
airflow_doc_site = "https://s.apache.org/airflow-docs"
else:
airflow_doc_site = 'https://airflow.apache.org/docs/{}'.format(version.version)
airflow_doc_site = 'https://airflow.apache.org/docs/apache-airflow/{}'.format(version.version)

appbuilder.add_link("Documentation",
href=airflow_doc_site,
Expand Down

0 comments on commit 8ea0a38

Please sign in to comment.