xref: /aosp_15_r20/external/pigweed/docs/layout/layout.html (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1<!--
2Copyright 2024 The Pigweed Authors
3
4Licensed under the Apache License, Version 2.0 (the "License"); you may not
5use this file except in compliance with the License. You may obtain a copy of
6the License at
7
8    https://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13License for the specific language governing permissions and limitations under
14the License.
15-->
16
17{% extends "pydata_sphinx_theme/layout.html" %}
18
19{% block extrahead %}
20  <!-- Preconnect with Google Fonts to speed up font loading. -->
21  <link rel="preconnect" href="https://fonts.googleapis.com">
22  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23  {{ super() }}
24  {% if pagename == 'search' %}
25    {# Search tools are already loaded on search page. Don't load them twice. #}
26  {% else %}
27    {# Load Sphinx's built-in search tools so that our custom inline search
28       experience can work on any page. See //docs/_static/js/pigweed.js #}
29    <script src="{{ pathto('_static/searchtools.js', 1) | e }}"></script>
30    <script src="{{ pathto('_static/language_data.js', 1) | e }}"></script>
31    <script src="{{ pathto('searchindex.js', 1) | e }}"></script>
32  {% endif %}
33{% endblock extrahead %}
34