From 6dff32ecff3ba899e820db199ac415187671372d Mon Sep 17 00:00:00 2001 From: easternsun7 <165460574+easternsun7@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:25:41 +0800 Subject: [PATCH 1/3] Update getting_started.css The problem is "DOC: Intro to pandas table not readily visible in dark mode #60024" Perhaps we could set this part of the font color to blue, which is highly visible in either bright or dark mode, so that there is no need to implement a font color that changes with the theme. --- doc/source/_static/css/getting_started.css | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index b02311eb66080..17f491047d85f 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -245,6 +245,7 @@ ul.task-bullet > li > p:first-child { justify-content: flex-start; align-items: center; font-size: 1.3rem; + color: rgb(0, 179, 255); } .tutorial-card .card-header { From 0d816aba2bdbd654c08d391d8135b12a5016181f Mon Sep 17 00:00:00 2001 From: easternsun7 <165460574+easternsun7@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:43:23 +0800 Subject: [PATCH 2/3] Update holiday.py In the pandas/tseries/holiday.py file, the formatting of some word cases and punctuation marks differed from the formatting in other files and has been modified. --- pandas/tseries/holiday.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pandas/tseries/holiday.py b/pandas/tseries/holiday.py index bf4ec2e551f01..7ee7ff13a637b 100644 --- a/pandas/tseries/holiday.py +++ b/pandas/tseries/holiday.py @@ -42,7 +42,7 @@ def next_monday(dt: datetime) -> datetime: """ If holiday falls on Saturday, use following Monday instead; - if holiday falls on Sunday, use Monday instead + if holiday falls on Sunday, use Monday instead. """ if dt.weekday() == 5: return dt + timedelta(2) @@ -55,7 +55,7 @@ def next_monday_or_tuesday(dt: datetime) -> datetime: """ For second holiday of two adjacent ones! If holiday falls on Saturday, use following Monday instead; - if holiday falls on Sunday or Monday, use following Tuesday instead + if holiday falls on Sunday or Monday, use following Tuesday instead. (because Monday is already taken by adjacent holiday on the day before) """ dow = dt.weekday() @@ -113,7 +113,7 @@ def nearest_workday(dt: datetime) -> datetime: def next_workday(dt: datetime) -> datetime: """ - returns next workday used for observances + Returns next workday used for observances """ dt += timedelta(days=1) while dt.weekday() > 4: @@ -124,7 +124,7 @@ def next_workday(dt: datetime) -> datetime: def previous_workday(dt: datetime) -> datetime: """ - returns previous workday used for observances + Returns previous workday used for observances """ dt -= timedelta(days=1) while dt.weekday() > 4: @@ -135,15 +135,15 @@ def previous_workday(dt: datetime) -> datetime: def before_nearest_workday(dt: datetime) -> datetime: """ - returns previous workday before nearest workday + Returns previous workday before nearest workday """ return previous_workday(nearest_workday(dt)) def after_nearest_workday(dt: datetime) -> datetime: """ - returns next workday after nearest workday - needed for Boxing day or multiple holidays in a series + Returns next workday after nearest workday + Needed for Boxing day or multiple holidays in a series """ return next_workday(nearest_workday(dt)) From d1c8ff1745ba735275c7f123bc2a23292a035fff Mon Sep 17 00:00:00 2001 From: easternsun7 <165460574+easternsun7@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:44:00 +0800 Subject: [PATCH 3/3] Update getting_started.css --- doc/source/_static/css/getting_started.css | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index 17f491047d85f..b02311eb66080 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -245,7 +245,6 @@ ul.task-bullet > li > p:first-child { justify-content: flex-start; align-items: center; font-size: 1.3rem; - color: rgb(0, 179, 255); } .tutorial-card .card-header {