Skip to content

Commit

Permalink
fix: downgrade the pydata sphinx theme (#335)
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
Revathyvenugopal162 and RobPasMue authored Jan 12, 2024
1 parent cd56cf6 commit 454aa48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"Sphinx>=4.2.0",
"pydata-sphinx-theme>=0.14.0",
"pydata-sphinx-theme>=0.14,<0.15",
"Jinja2>=3.1.2",
"importlib-metadata>=4.0",
]
Expand Down
25 changes: 13 additions & 12 deletions src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@
id="__secondary"
/>
<label class="overlay overlay-secondary" for="__secondary"></label>
<header>
{%- if theme_announcement -%} {% include "sections/announcement.html" %} {%-
endif %} {% block docs_navbar %}
<nav class="bd-header navbar navbar-expand-lg bd-navbar">
{%- include "sections/header.html" %}
</nav>
{% endblock docs_navbar %}
</header>
<!-- header-->
{%- if theme_announcement -%} {% include "sections/announcement.html" %} {%-
endif %} {% block docs_navbar %}
<nav class="bd-header navbar navbar-expand-lg bd-navbar">
{%- include "sections/header.html" %}
</nav>
{% endblock docs_navbar %}
<!-- /header -->
<div class="bd-container">
<div class="bd-container__inner bd-page-width">
{# 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
get_sidebar_toctree_length(show_nav_level=theme_show_nav_level|int) == 0 %
#} {# % set sidebars = sidebars | reject("in", "sidebar-nav-bs.html") | list
% #} {# % endif % #}

<div
class="bd-sidebar-primary bd-sidebar{% if not sidebars %} hide-on-wide{% endif %}"
>
Expand Down

0 comments on commit 454aa48

Please sign in to comment.