summaryrefslogtreecommitdiffstats
path: root/third_party/highway/docs/_templates
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/highway/docs/_templates
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/highway/docs/_templates')
-rw-r--r--third_party/highway/docs/_templates/layout.html9
-rw-r--r--third_party/highway/docs/_templates/versions.html62
2 files changed, 71 insertions, 0 deletions
diff --git a/third_party/highway/docs/_templates/layout.html b/third_party/highway/docs/_templates/layout.html
new file mode 100644
index 0000000000..e8f2b7f759
--- /dev/null
+++ b/third_party/highway/docs/_templates/layout.html
@@ -0,0 +1,9 @@
+{% extends "!layout.html" %}
+ {% block footer %} {{ super() }}
+
+ <style>
+ .wy-nav-content { max-width: none; }
+ </style>
+
+{% endblock %}
+
diff --git a/third_party/highway/docs/_templates/versions.html b/third_party/highway/docs/_templates/versions.html
new file mode 100644
index 0000000000..e9abbcdafe
--- /dev/null
+++ b/third_party/highway/docs/_templates/versions.html
@@ -0,0 +1,62 @@
+{% if READTHEDOCS or display_lower_left %}
+{# Add rst-badge after rst-versions for small badge style. #}
+ <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
+ <span class="rst-current-version" data-toggle="rst-current-version">
+ <span class="fa fa-book"> Read the Docs</span>
+
+
+ <span class="fa fa-element">
+ <input class="container_toggle" type="checkbox" id="switch" name="mode">
+ <label for="switch"></label>
+ </span>
+
+ v: {{ current_version }}
+ <span class="fa fa-caret-down"></span>
+ </span>
+ <div class="rst-other-versions">
+ {% if languages|length >= 1 %}
+ <dl>
+ <dt>{{ _('Languages') }}</dt>
+ {% for slug, url in languages %}
+ {% if slug == current_language %} <strong> {% endif %}
+ <dd><a href="{{ url }}">{{ slug }}</a></dd>
+ {% if slug == current_language %} </strong> {% endif %}
+ {% endfor %}
+ </dl>
+ {% endif %}
+ {% if versions|length >= 1 %}
+ <dl>
+ <dt>{{ _('Versions') }}</dt>
+ {% for slug, url in versions %}
+ {% if slug == current_version %} <strong> {% endif %}
+ <dd><a href="{{ url }}">{{ slug }}</a></dd>
+ {% if slug == current_version %} </strong> {% endif %}
+ {% endfor %}
+ </dl>
+ {% endif %}
+ {% if downloads|length >= 1 %}
+ <dl>
+ <dt>{{ _('Downloads') }}</dt>
+ {% for type, url in downloads %}
+ <dd><a href="{{ url }}">{{ type }}</a></dd>
+ {% endfor %}
+ </dl>
+ {% endif %}
+ {% if READTHEDOCS %}
+ <dl>
+ <dt>{{ _('On Read the Docs') }}</dt>
+ <dd>
+ <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">{{ _('Project Home') }}</a>
+ </dd>
+ <dd>
+ <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">{{ _('Builds') }}</a>
+ </dd>
+ </dl>
+ {% endif %}
+ <hr/>
+ {% trans %}Free document hosting provided by <a href="https://pages.github.com/">GitHub Pages</a>.{% endtrans %}
+
+ </div>
+ </div>
+{% endif %}
+