From 4d3aa55546e73a2855ee302dc8d13ce14c846d83 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Thu, 15 Sep 2022 01:16:47 +0100 Subject: [PATCH] Backport PR #48556: DOC: Fix docs footer --- doc/_templates/pandas_footer.html | 3 +++ doc/source/conf.py | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 doc/_templates/pandas_footer.html diff --git a/doc/_templates/pandas_footer.html b/doc/_templates/pandas_footer.html new file mode 100644 index 0000000000000..c24bce52e67e0 --- /dev/null +++ b/doc/_templates/pandas_footer.html @@ -0,0 +1,3 @@ + diff --git a/doc/source/conf.py b/doc/source/conf.py index 3225582269b64..e7e64315a502f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -163,11 +163,8 @@ # General information about the project. project = "pandas" -copyright = ( - f"{datetime.now().year} " - 'pandas via NumFOCUS, Inc. ' - 'Hosted by OVH Cloud' -) +# We have our custom "pandas_footer.html" template, using copyright for the current year +copyright = f"{datetime.now().year}" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -243,6 +240,7 @@ html_theme_options = { "external_links": [], + "footer_items": ["pandas_footer", "sphinx-version"], "github_url": "https://github.com/pandas-dev/pandas", "twitter_url": "https://twitter.com/pandas_dev", "google_analytics_id": "UA-27880019-2",