From a72b532fddff634f17a4740e552b2b9a7e55dccf Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Tue, 26 Sep 2023 11:23:36 +0200 Subject: [PATCH] docs(python): Enable version warning banner --- py-polars/docs/requirements-docs.txt | 2 +- py-polars/docs/source/_static/version_switcher.json | 3 ++- py-polars/docs/source/conf.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/py-polars/docs/requirements-docs.txt b/py-polars/docs/requirements-docs.txt index 1ce2c7c19ba9..4d827920690a 100644 --- a/py-polars/docs/requirements-docs.txt +++ b/py-polars/docs/requirements-docs.txt @@ -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 diff --git a/py-polars/docs/source/_static/version_switcher.json b/py-polars/docs/source/_static/version_switcher.json index 9e59d14848fc..8f4d300d81de 100644 --- a/py-polars/docs/source/_static/version_switcher.json +++ b/py-polars/docs/source/_static/version_switcher.json @@ -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", diff --git a/py-polars/docs/source/conf.py b/py-polars/docs/source/conf.py index e4f3a71c516d..3b6b63d82e56 100644 --- a/py-polars/docs/source/conf.py +++ b/py-polars/docs/source/conf.py @@ -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, }