From 5bbdfb4e11165cacbe3447cd67c089edbb5e297e Mon Sep 17 00:00:00 2001 From: Andrew Barna Date: Fri, 11 Oct 2024 09:25:48 -1000 Subject: [PATCH] Suppress 'rtd-footer-container' if not being built on ReadTheDocs --- .../theme/pydata_sphinx_theme/sections/sidebar-primary.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/sidebar-primary.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/sidebar-primary.html index 378643bc4..a1b9ef9c3 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/sidebar-primary.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/sidebar-primary.html @@ -37,7 +37,9 @@ {%- endfor %} - {# add the rtd flyout in the sidebar if existing #} - + {# add the rtd flyout in the sidebar if building on rtd #} + {% if READTHEDOCS %} + + {% endif %} {% endif %} {% endblock docs_sidebar %}