Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ac50737

Browse files
committedAug 18, 2022
documentation: add explanation of kendrasearchtool.js + change no results prompt
1 parent 034473f commit ac50737

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎doc/_static/kendrasearchtools.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/*
2-
* searchtools.js
2+
* kendrasearchtools.js
33
* ~~~~~~~~~~~~~~~~
44
*
5-
* Sphinx JavaScript utilities for the full-text search.
5+
* A modification of searchtools.js (https://github.com/sphinx-doc/sphinx/blob/275d9/sphinx/themes/basic/static/searchtools.js)
6+
* where the default full-text search implemented in searchtools.js is replaced with AWS Kendra searching over multiple
7+
* websites. The default full-text search is still kept and implemented as a fallback in the case that the Kendra search doesn't work.
68
*
79
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
810
* :license: BSD, see LICENSE for details.
@@ -305,7 +307,7 @@ var Search = {
305307
Search.stopPulse();
306308
Search.title.text(_('Search Results'));
307309
if (!resultCount)
308-
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
310+
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve used the correct terminology.'));
309311
else
310312
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
311313
Search.status.fadeIn(500);

‎doc/_templates/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{# Translators: Search is a noun, not a verb #}
3939
<h2>{{ _('Search Results') }}</h2>
4040
{% if not search_results %}
41-
<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>
41+
<p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve used the correct terminology.') }}</p>
4242
{% endif %}
4343
{% endif %}
4444
<div id="search-results">

0 commit comments

Comments
 (0)
Please sign in to comment.