You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2024/05/10 12:53:05 UTC
(airflow-site) branch main updated: Add Scarf Pixel to Airflow RTD Theme (#1012)
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 43517d2966 Add Scarf Pixel to Airflow RTD Theme (#1012)
43517d2966 is described below
commit 43517d2966f75b1520e736265fc06b4d577cb9ae
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Fri May 10 13:52:59 2024 +0100
Add Scarf Pixel to Airflow RTD Theme (#1012)
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.
---
landing-pages/site/layouts/partials/hooks/head-end.html | 3 +++
sphinx_airflow_theme/sphinx_airflow_theme/__init__.py | 2 +-
sphinx_airflow_theme/sphinx_airflow_theme/layout.html | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/landing-pages/site/layouts/partials/hooks/head-end.html b/landing-pages/site/layouts/partials/hooks/head-end.html
index c840423105..4cfc67a632 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 @@
})();
</script>
<!-- End Matomo Code -->
+<!-- Scarf Telemetry Pixel -->
+<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=7265a3c4-a6dd-4933-ba8b-9e3c13903c60" />
+<!-- End Scarf Telemetry Pixel -->
{{ with .Site.Data.webpack }}
<link rel="preload" href="{{ relURL .main.js }}" as="script">
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
index fcd4e04060..b383314376 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__
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
index f9b454d326..923f3790e8 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/layout.html
@@ -317,6 +317,9 @@
})();
</script>
<!-- End Matomo Code -->
+ <!-- Scarf Telemetry Pixel -->
+ <img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=7265a3c4-a6dd-4933-ba8b-9e3c13903c60" />
+ <!-- End Scarf Telemetry Pixel -->
{%- block extrahead %}
{% endblock %}