From 63bfc10ff97c2bca1fd6949ffe13c3aabc441f7c Mon Sep 17 00:00:00 2001 From: panbingkun Date: Fri, 20 Oct 2023 09:12:20 +0900 Subject: [PATCH] [SPARK-45428][PYTHON][DOCS] Add Matomo analytics to pyspark docs pages ### What changes were proposed in this pull request? The pr aims to add Matomo analytics to pyspark docs pages. ### Why are the changes needed? After [SPARK-45286](https://issues.apache.org/jira/browse/SPARK-45286), We have added `Matomo analytics` functionality to `non pyspark documents`, and now we need to add the same logic to `pyspark documents`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually test. By comparing the content of HTML documents generated `before` and `after` the patch image ### Was this patch authored or co-authored using generative AI tooling? No. Closes #43454 from panbingkun/SPARK-45428. Authored-by: panbingkun Signed-off-by: Hyukjin Kwon --- python/docs/source/_templates/layout.html | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 python/docs/source/_templates/layout.html diff --git a/python/docs/source/_templates/layout.html b/python/docs/source/_templates/layout.html new file mode 100644 index 0000000000000..c448424de1388 --- /dev/null +++ b/python/docs/source/_templates/layout.html @@ -0,0 +1,30 @@ +{% extends "!layout.html" %} + +{%- block extrahead %} + + + {% for favicon in theme_favicons %} + {% if favicon.href[:4] == 'http'%} + + {% else %} + + {% endif %} + {% endfor %} + + + + +{% endblock %} \ No newline at end of file