diff --git a/pyproject.toml b/pyproject.toml index a0c1b568..18aef2b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,9 @@ classifiers = [ ] dependencies = [ "Sphinx>=4.2.0", - "pydata-sphinx-theme>=0.14,<0.15", + "pydata-sphinx-theme@git+https://github.com/pydata/pydata-sphinx-theme#egg=main", + # "pydata-sphinx-theme>=0.14.0", + "Jinja2>=3.1.2", "importlib-metadata>=4.0", ] diff --git a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html index d513fa61..c8ff3e8e 100644 --- a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html +++ b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html @@ -30,10 +30,10 @@
{# Primary sidebar #} {# If we have no sidebar TOC, pop the TOC component - from the sidebar list #} {# % if - get_sidebar_toctree_length(show_nav_level=theme_show_nav_level|int) == 0 % - #} {# % set sidebars = sidebars | reject("in", "sidebar-nav-bs.html") | list - % #} {# % endif % #} + from the sidebar list #} {% if + missing_sidebar_toctree(show_nav_level=theme_show_nav_level | int) == 0 %} + {% set sidebars = sidebars | reject("in", "sidebar-nav-bs.html") | list %} + {% endif %}