From 6dd0aba0b7b1933e01326ca81fba05a31138022f Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Fri, 10 May 2024 01:14:54 +0100 Subject: [PATCH 1/3] Add Scarf Pixel to Airflow RTD Theme Similar to https://github.com/apache/superset/pull/25065 and https://github.com/apache/airflow/pull/39510 but this one doesn't need to wait for the VOTE since this adds a simple transparent tracking pixel. More detail in https://docs.scarf.sh/web-traffic/ All of this data will be available in Scarf, creds for which are shared to 1password for PMC members, and can be reported periodically in things like Town Hall or newsletters. --- sphinx_airflow_theme/sphinx_airflow_theme/layout.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html index f9b454d326b..923f3790e8d 100644 --- a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html +++ b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html @@ -317,6 +317,9 @@ })(); + + + {%- block extrahead %} {% endblock %} From 4711d1d37c5809d334ccdd335fc17ac0cfaaedac Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Fri, 10 May 2024 01:19:38 +0100 Subject: [PATCH 2/3] Add it to the website --- landing-pages/site/layouts/partials/hooks/head-end.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/landing-pages/site/layouts/partials/hooks/head-end.html b/landing-pages/site/layouts/partials/hooks/head-end.html index c8404231051..4cfc67a632f 100644 --- a/landing-pages/site/layouts/partials/hooks/head-end.html +++ b/landing-pages/site/layouts/partials/hooks/head-end.html @@ -46,6 +46,9 @@ })(); + + + {{ with .Site.Data.webpack }} From 05190f1b6d1bf7641851ffbd660051af9dc7c6a6 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Fri, 10 May 2024 03:07:07 +0100 Subject: [PATCH 3/3] fixup! Add it to the website --- sphinx_airflow_theme/sphinx_airflow_theme/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py index fcd4e040602..b383314376a 100644 --- a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py +++ b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py @@ -18,7 +18,7 @@ from os import path from sphinx.application import Sphinx -__version__ = '0.0.12' +__version__ = '0.0.13' __version_full__ = __version__