diff options
Diffstat (limited to 'docs/_templates')
-rw-r--r-- | docs/_templates/breadcrumbs.html | 14 | ||||
-rw-r--r-- | docs/_templates/searchbox.html | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/docs/_templates/breadcrumbs.html b/docs/_templates/breadcrumbs.html new file mode 100644 index 0000000000..b0e7bba4db --- /dev/null +++ b/docs/_templates/breadcrumbs.html @@ -0,0 +1,14 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this file, + - You can obtain one at http://mozilla.org/MPL/2.0/. --> + +{%- extends "sphinx_rtd_theme/breadcrumbs.html" %} + +{% block breadcrumbs_aside %} +<li class="wy-breadcrumbs-aside"> + <a href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Developer+Infrastructure&component=Firefox+Source+Docs%3A+Content&short_desc=Documentation+issue+on+{{ pagename }}&comment=URL+=+https://firefox-source-docs.mozilla.org/{{ pagename }}.html&bug_file_loc=https://firefox-source-docs.mozilla.org/{{ pagename }}.html" rel="nofollow">Report an issue</a> / + {%- if show_source and has_source and sourcename %} + <a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> {{ _('View page source') }}</a> + {%- endif %} +</li> +{% endblock %} diff --git a/docs/_templates/searchbox.html b/docs/_templates/searchbox.html new file mode 100644 index 0000000000..407147ca30 --- /dev/null +++ b/docs/_templates/searchbox.html @@ -0,0 +1,16 @@ +<! -- This code is governed by the BSD license --> + +<div> + <h3>{{ _('Quick search') }}</h3> + <script> + (function() { + var cx = 'dd12886298f75dbef'; + var gcse = document.createElement('script'); + gcse.async = true; + gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(gcse, s); + })(); + </script> + <gcse:search></gcse:search> +</div> |