From 661bf0553e2d3f9ab6934a02f3733c5a599ef075 Mon Sep 17 00:00:00 2001 From: ascender1729 Date: Sun, 30 Mar 2025 10:49:26 +0530 Subject: [PATCH 1/4] DOC: Simplify pandas theme footer by removing social buttons and streamlining copyright text --- web/pandas/_templates/layout.html | 31 ++----------------------------- web/pandas/static/css/pandas.css | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index c26b093b0c4ba..75ae0176633f2 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -61,35 +61,8 @@ diff --git a/web/pandas/static/css/pandas.css b/web/pandas/static/css/pandas.css index ec9a4bd502dd1..f1a5e1f02fb60 100644 --- a/web/pandas/static/css/pandas.css +++ b/web/pandas/static/css/pandas.css @@ -103,3 +103,21 @@ blockquote { color: #787878; font-size: 18px; } +footer { + margin-top: 2rem; + padding-bottom: 1rem; +} + +footer p { + color: #666; + font-size: 0.9rem; +} + +footer a { + color: #130654; + text-decoration: none; +} + +footer a:hover { + text-decoration: underline; +} From 243e4ca4aafa89940cfcf5eaea24ce90e1ad16a8 Mon Sep 17 00:00:00 2001 From: ascender1729 Date: Sun, 30 Mar 2025 11:23:15 +0530 Subject: [PATCH 2/4] DOC: Add edit on GitHub button to documentation pages --- doc/source/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 677ee6274b093..6503ed7e9df3d 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -268,6 +268,8 @@ "icon": "fa-brands fa-mastodon", }, ], + "use_edit_page_button": True, + "edit_page_url_template": "https://github.com/pandas-dev/pandas/edit/main/doc/source/{filepath}", } # Add any paths that contain custom themes here, relative to this directory. From f51c66670161517cd6174b058ef83e94b3c37a2d Mon Sep 17 00:00:00 2001 From: ascender1729 Date: Sun, 30 Mar 2025 12:31:27 +0530 Subject: [PATCH 3/4] DOC: Add GitHub context for edit button configuration --- doc/source/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6503ed7e9df3d..425c92daf5695 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -393,6 +393,9 @@ html_context = { "redirects": dict(moved_api_pages), "header": header, + "github_user": "pandas-dev", + "github_repo": "pandas", + "github_version": "main", } # If false, no module index is generated. From fc973d3dcdd00a80d5c15868eadb411a454cfdab Mon Sep 17 00:00:00 2001 From: ascender1729 Date: Mon, 31 Mar 2025 03:32:11 +0530 Subject: [PATCH 4/4] Revert: Remove edit button configuration --- doc/source/conf.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 425c92daf5695..677ee6274b093 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -268,8 +268,6 @@ "icon": "fa-brands fa-mastodon", }, ], - "use_edit_page_button": True, - "edit_page_url_template": "https://github.com/pandas-dev/pandas/edit/main/doc/source/{filepath}", } # Add any paths that contain custom themes here, relative to this directory. @@ -393,9 +391,6 @@ html_context = { "redirects": dict(moved_api_pages), "header": header, - "github_user": "pandas-dev", - "github_repo": "pandas", - "github_version": "main", } # If false, no module index is generated.