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", 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