Skip to content

Commit 4d3aa55

Browse files
datapythonistameeseeksmachine
authored andcommitted
Backport PR pandas-dev#48556: DOC: Fix docs footer
1 parent f51c2a0 commit 4d3aa55

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/_templates/pandas_footer.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p class="copyright">
2+
&copy {{copyright}} pandas via <a href="https://numfocus.org">NumFOCUS, Inc.</a> Hosted by <a href="https://www.ovhcloud.com">OVH Cloud</a>.
3+
</p>

doc/source/conf.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,8 @@
163163

164164
# General information about the project.
165165
project = "pandas"
166-
copyright = (
167-
f"{datetime.now().year} "
168-
'pandas via <a href="https://numfocus.org">NumFOCUS, Inc.</a> '
169-
'Hosted by <a href="https://www.ovhcloud.com">OVH Cloud</a>'
170-
)
166+
# We have our custom "pandas_footer.html" template, using copyright for the current year
167+
copyright = f"{datetime.now().year}"
171168

172169
# The version info for the project you're documenting, acts as replacement for
173170
# |version| and |release|, also used in various other places throughout the
@@ -243,6 +240,7 @@
243240

244241
html_theme_options = {
245242
"external_links": [],
243+
"footer_items": ["pandas_footer", "sphinx-version"],
246244
"github_url": "https://github.com/pandas-dev/pandas",
247245
"twitter_url": "https://twitter.com/pandas_dev",
248246
"google_analytics_id": "UA-27880019-2",

0 commit comments

Comments
 (0)