From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/fmt/doc/_templates/layout.html | 148 +++++++++++++++++++++++++++++++++++++ src/fmt/doc/_templates/search.html | 55 ++++++++++++++ 2 files changed, 203 insertions(+) create mode 100644 src/fmt/doc/_templates/layout.html create mode 100644 src/fmt/doc/_templates/search.html (limited to 'src/fmt/doc/_templates') diff --git a/src/fmt/doc/_templates/layout.html b/src/fmt/doc/_templates/layout.html new file mode 100644 index 000000000..333a606c8 --- /dev/null +++ b/src/fmt/doc/_templates/layout.html @@ -0,0 +1,148 @@ +{% 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}

+

A modern 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/fmt/doc/_templates/search.html b/src/fmt/doc/_templates/search.html new file mode 100644 index 000000000..488e0b5d2 --- /dev/null +++ b/src/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