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
Merged
6 changes: 5 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,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 @@ -246,11 +248,13 @@
"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"],
"switcher": {
"json_url": "https://pandas.pydata.org/versions.json",
"version_match": switcher_version,
},
"show_version_warning_banner": True,
"icon_links": [
{
"name": "Mastodon",
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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 @@ -61,7 +61,7 @@ gitdb
google-auth
natsort
numpydoc
pydata-sphinx-theme==0.13
pydata-sphinx-theme==0.14
pytest-cython
sphinx
sphinx-design
Expand Down
3 changes: 2 additions & 1 deletion web/pandas/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"name": "2.1 (stable)",
"version": "2.1",
"url": "https://pandas.pydata.org/docs/"
"url": "https://pandas.pydata.org/docs/",
"preferred": true
},
{
"name": "2.0",
Expand Down
Loading