Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/788.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rearrange search import
10 changes: 3 additions & 7 deletions src/ansys_sphinx_theme/theme/ansys_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<meta name="physics" content="{{ pyansys_tags }}" />
{%- endif %}
{%- endif %}
{% if theme_use_ansys_search %}
{%- include "components/ast-search-button.html" %}
{% endif %}
{%- endblock %}

{# Append our custom CSS after the bootstrap stylesheet so we can override where necessary #}
Expand Down Expand Up @@ -40,13 +43,6 @@
{% endif %}
{% endblock %}

{%- block content %}
{{ super() }}
{% if theme_use_ansys_search %}
{%- include "components/ast-search-button.html" %}
{% endif %}
{%- endblock %}

{%- block scripts_end %}
{{ super() }}

Expand Down
8 changes: 6 additions & 2 deletions src/ansys_sphinx_theme/theme/ansys_sphinx_theme/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ <h1>{{ _("Search") }}</h1>
<div class="results" id="search-results"></div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script src="{{ pathto('_static/js/search-main.js', 1) }}"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script> -->
<!-- <script src="{{ pathto('_static/js/search-main.js', 1) }}"></script> -->

{% endblock %}

{%- block htmltitle -%}
<title>{{ _("Search") }} - {{ title or docstitle }}</title>
{%- endblock htmltitle -%}

{%- block scripts_end %}
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script> -->
<script src="{{ pathto('_static/js/search-main.js', 1) }}"></script>
{%- endblock %}
Loading