Skip to content

Commit

Permalink
docs(python): Enable version warning banner (#11322)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego authored Sep 26, 2023
1 parent 5d5bb6a commit d0a04be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py-polars/docs/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sphinx==7.2.4
# Third-party Sphinx extensions
autodocsumm==0.2.11
numpydoc==1.5.0
pydata-sphinx-theme==0.13.3
pydata-sphinx-theme==0.14.1
sphinx-autosummary-accessors==2023.4.0
sphinx-copybutton==0.5.2
sphinx-design==0.5.0
Expand Down
3 changes: 2 additions & 1 deletion py-polars/docs/source/_static/version_switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"name": "0.19 (stable)",
"version": "0.19",
"url": "https://pola-rs.github.io/polars/py-polars/html/"
"url": "https://pola-rs.github.io/polars/py-polars/html/",
"preferred": true
},
{
"name": "0.18",
Expand Down
1 change: 1 addition & 0 deletions py-polars/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"json_url": f"{web_root}/polars/docs/python/dev/_static/version_switcher.json",
"version_match": switcher_version,
},
"show_version_warning_banner": True,
"navbar_end": ["version-switcher", "navbar-icon-links"],
"check_switcher": False,
}
Expand Down

0 comments on commit d0a04be

Please sign in to comment.