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