This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new 2a386bd99c Add Registry to main website and Sphinx theme navigation
(#1458)
2a386bd99c is described below
commit 2a386bd99cfd7b26218784314aaa1d90c790e08d
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Mar 19 12:58:57 2026 +0000
Add Registry to main website and Sphinx theme navigation (#1458)
Add a "Registry" link to the navbar in two places:
1. Hugo main website: new [[menu.main]] entry at weight 12,
placing it between Documentation and Roadmap
2. Sphinx Airflow Theme: add to default navbar_links so the
link appears in documentation pages
---
landing-pages/site/config.toml | 5 +++++
sphinx_airflow_theme/sphinx_airflow_theme/__init__.py | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/landing-pages/site/config.toml b/landing-pages/site/config.toml
index 84004f225c..eef3e0f1aa 100644
--- a/landing-pages/site/config.toml
+++ b/landing-pages/site/config.toml
@@ -155,6 +155,11 @@ no = 'Sorry to hear that. Please <a
href="https://github.com/USERNAME/REPOSITORY
name = "Code of Conduct"
url = "/code-of-conduct/"
+[[menu.main]]
+ name = "Registry"
+ url = "/registry/"
+ weight = 12
+
[related]
threshold = 50.0
includeNewer = true
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
index 74c21d4d4a..e479ae27af 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
@@ -30,7 +30,10 @@ def get_html_theme_path():
def setup_my_func(app, config):
# We can't set this in the theme.conf, cos we want it to be a non-string
type
- config.html_theme_options.setdefault('navbar_links', [{'href':
'/index.html', 'text': 'Documentation'}])
+ config.html_theme_options.setdefault('navbar_links', [
+ {'href': '/index.html', 'text': 'Documentation'},
+ {'href': '/registry/', 'text': 'Registry'},
+ ])
# See
http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package