From d12e7e428f22cfd03f9cc4196a31bcf31233b220 Mon Sep 17 00:00:00 2001 From: SrushtikShetty Date: Sat, 30 Aug 2025 17:49:29 +0530 Subject: [PATCH] Remove custom footer template in favor of theme options (#51536) --- doc/_templates/pandas_footer.html | 3 --- doc/source/conf.py | 11 +++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) delete mode 100644 doc/_templates/pandas_footer.html diff --git a/doc/_templates/pandas_footer.html b/doc/_templates/pandas_footer.html deleted file mode 100644 index 6d8caa4d6c741..0000000000000 --- a/doc/_templates/pandas_footer.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/doc/source/conf.py b/doc/source/conf.py index f222a228531ff..bea188e2ea6c9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -241,8 +241,14 @@ switcher_version = ".".join(version.split(".")[:2]) html_theme_options = { - "external_links": [], - "footer_start": ["pandas_footer", "sphinx-version"], + "external_links": [ + { + "url": "https://github.com/pandas-dev/pandas", + "name": "GitHub", + }, + ], + "footer_start": ["copyright"], + "footer_end": ["sphinx-version", "theme-version"], "github_url": "https://github.com/pandas-dev/pandas", "analytics": { "plausible_analytics_domain": "pandas.pydata.org", @@ -255,6 +261,7 @@ "json_url": "https://pandas.pydata.org/versions.json", "version_match": switcher_version, }, + # This shows a warning for patch releases since the # patch version doesn't compare as equal (e.g. 2.2.1 != 2.2.0 but it should be) "show_version_warning_banner": False,