Skip to content

Commit d12e7e4

Browse files
Remove custom footer template in favor of theme options (#51536)
1 parent 7bfef3b commit d12e7e4

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

doc/_templates/pandas_footer.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,14 @@
241241
switcher_version = ".".join(version.split(".")[:2])
242242

243243
html_theme_options = {
244-
"external_links": [],
245-
"footer_start": ["pandas_footer", "sphinx-version"],
244+
"external_links": [
245+
{
246+
"url": "https://github.com/pandas-dev/pandas",
247+
"name": "GitHub",
248+
},
249+
],
250+
"footer_start": ["copyright"],
251+
"footer_end": ["sphinx-version", "theme-version"],
246252
"github_url": "https://github.com/pandas-dev/pandas",
247253
"analytics": {
248254
"plausible_analytics_domain": "pandas.pydata.org",
@@ -255,6 +261,7 @@
255261
"json_url": "https://pandas.pydata.org/versions.json",
256262
"version_match": switcher_version,
257263
},
264+
258265
# This shows a warning for patch releases since the
259266
# patch version doesn't compare as equal (e.g. 2.2.1 != 2.2.0 but it should be)
260267
"show_version_warning_banner": False,

0 commit comments

Comments
 (0)