From 5bbdfb4e11165cacbe3447cd67c089edbb5e297e Mon Sep 17 00:00:00 2001 From: Andrew Barna Date: Fri, 11 Oct 2024 09:25:48 -1000 Subject: [PATCH 1/2] 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 %} From c27e92dcd6c668bbbe61f8b03f6ea1cef08ffbfd Mon Sep 17 00:00:00 2001 From: Andrew Barna Date: Thu, 7 Nov 2024 02:50:45 +0000 Subject: [PATCH 2/2] fix expected output for suppressed rtd-footer-container --- tests/test_build/sidebar_subpage.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test_build/sidebar_subpage.html b/tests/test_build/sidebar_subpage.html index 54a4a2e49..fb97a037f 100644 --- a/tests/test_build/sidebar_subpage.html +++ b/tests/test_build/sidebar_subpage.html @@ -69,6 +69,4 @@ -