Skip to content

Commit

Permalink
fix: search bar fail (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Jan 4, 2024
1 parent ce85317 commit f603df7
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{% if theme_use_meilisearch %} {%- extends "page.html" %} {%- block content %}
{# A tiny helper pixel to detect if we've scrolled #}
<div id="pst-scroll-pixel-helper"></div>

{# the scroll to top button #}
<button type="button" class="btn rounded-pill" id="pst-back-to-top">
<i class="fa-solid fa-arrow-up"></i>
{{ _("Back to top") }}
</button>

{# checkbox to toggle primary sidebar #}
<input type="checkbox" class="sidebar-toggle" name="__primary" id="__primary" />
<label class="overlay overlay-primary" for="__primary"></label>
Expand All @@ -10,15 +19,21 @@
id="__secondary"
/>
<label class="overlay overlay-secondary" for="__secondary"></label>
{%- 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>
{%- 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 #}
{# 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 %}
<div
class="bd-sidebar-primary bd-sidebar{% if not sidebars %} hide-on-wide{% endif %}"
>
Expand All @@ -34,6 +49,7 @@
{% include "sections/header-article.html" %}
</div>
{# Article content #} {% block docs_body %}

<div class="bd-search-container">
<h1>{{ _("Search") }}</h1>
<style>
Expand Down

0 comments on commit f603df7

Please sign in to comment.