From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/seastar/fmt/doc/_templates/layout.html | 149 +++++++++++++++++++++++++++++ src/seastar/fmt/doc/_templates/search.html | 55 +++++++++++ 2 files changed, 204 insertions(+) create mode 100644 src/seastar/fmt/doc/_templates/layout.html create mode 100644 src/seastar/fmt/doc/_templates/search.html (limited to 'src/seastar/fmt/doc/_templates') diff --git a/src/seastar/fmt/doc/_templates/layout.html b/src/seastar/fmt/doc/_templates/layout.html new file mode 100644 index 00000000..0ac2dec7 --- /dev/null +++ b/src/seastar/fmt/doc/_templates/layout.html @@ -0,0 +1,149 @@ +{% extends "!layout.html" %} + +{% block extrahead %} + + + + +{# Google Analytics #} + +{% endblock %} + +{%- macro searchform(classes, button) %} + +{%- endmacro %} + +{% block header %} + +{% if pagename == "index" %} +{% set download_url = 'https://github.com/fmtlib/fmt/releases/download' %} +
+
+

{fmt}

+

Small, safe and fast formatting library

+
+ {% set name = 'fmt' if version.split('.')[0]|int >= 3 else 'cppformat' %} + + Download + + + +
+
+
+{% endif %} +{% endblock %} + +{# Disable relbars. #} +{% block relbar1 %} +{% endblock %} +{% block relbar2 %} +{% endblock %} + +{% block content %} +
+
+ {# Sidebar is currently disabled. +
+ +
+ #} + +
+ {% block body %} {% endblock %} +
+
+
+{% endblock %} + +{% block footer %} +{{ super() }} +{# Placed at the end of the document so the pages load faster. #} + +{% endblock %} diff --git a/src/seastar/fmt/doc/_templates/search.html b/src/seastar/fmt/doc/_templates/search.html new file mode 100644 index 00000000..488e0b5d --- /dev/null +++ b/src/seastar/fmt/doc/_templates/search.html @@ -0,0 +1,55 @@ +{# + basic/search.html + ~~~~~~~~~~~~~~~~~ + + Template for the search page. + + :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- extends "layout.html" %} +{% set title = _('Search') %} +{% set script_files = script_files + ['_static/searchtools.js'] %} +{% block extrahead %} + + {# this is used when loading the search index using $.ajax fails, + such as on Chrome for documents on localhost #} + + {{ super() }} +{% endblock %} +{% block body %} +

{{ _('Search') }}

+
+ +

+ {% trans %}Please activate JavaScript to enable the search + functionality.{% endtrans %} +

+
+

+ {% trans %}From here you can search these documents. Enter your search + words into the box below and click "search". Note that the search + function will automatically search for all of the words. Pages + containing fewer words won't appear in the result list.{% endtrans %} +

+ {{ searchform('form-inline', True) }} + {% if search_performed %} +

{{ _('Search Results') }}

+ {% if not search_results %} +

{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}

+ {% endif %} + {% endif %} +
+ {% if search_results %} +
    + {% for href, caption, context in search_results %} +
  • {{ caption }} +
    {{ context|e }}
    +
  • + {% endfor %} +
+ {% endif %} +
+{% endblock %} -- cgit v1.2.3