From 1d21f20d981d82001b38d95cae3147e76ee0ca51 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sat, 6 Dec 2025 16:18:02 +0100 Subject: [PATCH 1/2] DOC: add placeholder for announcement banner in docs (and use for 3.0rc announcement) --- doc/_templates/docs-announcement-banner.html | 1 + doc/source/conf.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/_templates/docs-announcement-banner.html diff --git a/doc/_templates/docs-announcement-banner.html b/doc/_templates/docs-announcement-banner.html new file mode 100644 index 0000000000000..5e49829cec837 --- /dev/null +++ b/doc/_templates/docs-announcement-banner.html @@ -0,0 +1 @@ +Announcement: pandas 3.0 release candidate is now available! Read more here. Please test! \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index 63c723eb67672..d63731defeb70 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -258,6 +258,7 @@ # This shows a warning for patch releases since the # patch version doesn't compare as equal (e.g. 2.2.1 != 2.2.0 but it should be) "show_version_warning_banner": False, + "announcement": "https://raw.githubusercontent.com/pandas-dev/pandas/main/doc/_templates/docs-announcement-banner.html", "icon_links": [ { "name": "X", From 2f186ef6ed05dff66284010d65f28253a36f0850 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 12 Dec 2025 17:47:04 +0100 Subject: [PATCH 2/2] test with patch --- environment.yml | 4 +++- requirements-dev.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 0d917be67e0c5..79100140cc57f 100644 --- a/environment.yml +++ b/environment.yml @@ -86,7 +86,8 @@ dependencies: - natsort # DataFrame.sort_values doctest - pickleshare # Needed for IPython Sphinx directive in the docs GH#60429 - numpydoc - - pydata-sphinx-theme=0.16 + # temporary installed with pip with custom patch until released + # - pydata-sphinx-theme=0.16 - pytest-cython # doctest - sphinx - sphinx-design @@ -126,3 +127,4 @@ dependencies: - pip: - tzdata>=2023.3 + - https://github.com/jorisvandenbossche/pydata-sphinx-theme/archive/refs/heads/v0.16.1+dismissable-announcement-banner.zip diff --git a/requirements-dev.txt b/requirements-dev.txt index 87384ee738cf3..629524d93f944 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -61,7 +61,6 @@ gitpython natsort pickleshare numpydoc -pydata-sphinx-theme==0.16 pytest-cython sphinx sphinx-design @@ -87,3 +86,4 @@ pygments jupyterlite-core jupyterlite-pyodide-kernel tzdata>=2023.3 +https://github.com/jorisvandenbossche/pydata-sphinx-theme/archive/refs/heads/v0.16.1+dismissable-announcement-banner.zip