summaryrefslogtreecommitdiffstats
path: root/common/sphinx_rtd_theme_rtems/search.html
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2020-02-22 19:32:07 -0500
committerAmar Takhar <amar@rtems.org>2020-02-26 00:09:17 -0500
commit98451835274168ccfeb04b82d6e65dfebcec8fb6 (patch)
tree761f73a29d124d0ac96bffd3670fc6ab2af8e8df /common/sphinx_rtd_theme_rtems/search.html
parenteng: Fix typo (diff)
downloadrtems-docs-98451835274168ccfeb04b82d6e65dfebcec8fb6.tar.bz2
Update sphinx_rtd_theme to https://github.com/readthedocs/sphinx_rtd_theme/
68a19ca / 0.4.3.dev0. I have been using this one for a while without issues. This should fix the search issues. closes #3880
Diffstat (limited to 'common/sphinx_rtd_theme_rtems/search.html')
-rw-r--r--common/sphinx_rtd_theme_rtems/search.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/sphinx_rtd_theme_rtems/search.html b/common/sphinx_rtd_theme_rtems/search.html
index e3aa9b5..10ac568 100644
--- a/common/sphinx_rtd_theme_rtems/search.html
+++ b/common/sphinx_rtd_theme_rtems/search.html
@@ -9,7 +9,10 @@
#}
{%- extends "layout.html" %}
{% set title = _('Search') %}
-{% set script_files = script_files + ['_static/searchtools.js'] %}
+{%- block scripts %}
+ {{ super() }}
+ <script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
+{%- endblock %}
{% block footer %}
<script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
@@ -23,13 +26,14 @@
<noscript>
<div id="fallback" class="admonition warning">
<p class="last">
- {% trans %}Please activate JavaScript to enable the search
+ {% trans trimmed %}Please activate JavaScript to enable the search
functionality.{% endtrans %}
</p>
</div>
</noscript>
{% if search_performed %}
+ {# Translators: Search is a noun, not a verb #}
<h2>{{ _('Search Results') }}</h2>
{% if not search_results %}
<p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p>