zephyr/doc/_templates/gsearch.html
Benjamin Cabé 7e253ff937 doc: Make search engine configurable
Add UI to select preferred search engine when Google Programmable Search is
enabled. The user's preference is saved using local storage.

This also makes the search input field of type "search" for better UX (in
particular on mobile).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-12-15 04:34:48 -05:00

18 lines
450 B
HTML

{%- extends "!search.html" %}
{%- block scripts %}
{{ super.super() }}
<link rel="stylesheet" href="{{ pathto('_static/css/gcs.css', 1) }}" type="text/css" />
{%- endblock %}
{% block footer %}
{{ super.super() }}
{% endblock %}
{% block body %}
<h2>{{ _('Search Results') }}</h2>
<script async src="https://cse.google.com/cse.js?cx={{ google_searchengine_id }}">
</script>
<div class="gcse-searchresults-only"></div>
{% endblock %}