Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Update pydata-sphinx-theme to 0.14 #55885

Merged
merged 9 commits into from
Dec 22, 2023
6 changes: 5 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,13 @@
# further. For a list of options available for each theme, see the
# documentation.

switcher_version = version
if ".dev" in version:
switcher_version = "dev"
elif "rc" in version:
switcher_version = version.split("rc", maxsplit=1)[0] + " (rc)"
else:
# only keep major.minor version number to match versions.json
switcher_version = ".".join(version.split(".")[:2])

html_theme_options = {
"external_links": [],
Expand All @@ -247,7 +249,9 @@
"plausible_analytics_url": "https://views.scientific-python.org/js/script.js",
},
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
"navbar_align": "left",
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
"sidebar_includehidden": False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you add this for a specific reason? (locally I am not directly seeing a difference)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I thought this was needed before because the empty sidebar misaligned the body of the page, but looks like this isn't needed anymore

"switcher": {
"json_url": "https://pandas.pydata.org/versions.json",
"version_match": switcher_version,
Expand Down
7 changes: 4 additions & 3 deletions doc/source/whatsnew/v0.17.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,11 @@ be broadcast:

or it can return False if broadcasting can not be done:

.. ipython:: python
:okwarning:
.. code-block:: ipython

In [11]: np.array([1, 2, 3]) == np.array([1, 2])

np.array([1, 2, 3]) == np.array([1, 2])
Out[11]: False

Changes to boolean comparisons vs. None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dependencies:
- google-auth
- natsort # DataFrame.sort_values doctest
- numpydoc
- pydata-sphinx-theme=0.13
- pydata-sphinx-theme=0.14
- pytest-cython # doctest
- sphinx
- sphinx-design
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gitdb
google-auth
natsort
numpydoc
pydata-sphinx-theme==0.13
pydata-sphinx-theme==0.14
pytest-cython
sphinx
sphinx-design
Expand Down