Debian Codegraph @

third_party/rust/askama_parser/benches/librustdoc/page.html

raw
1 <!DOCTYPE html> {# #}
2 <html lang="en"> {# #}
3 <head> {# #}
4 <meta charset="utf-8"> {# #}
5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> {# #}
6 <meta name="generator" content="rustdoc"> {# #}
7 <meta name="description" content="{{page.description}}"> {# #}
8 <title>{{page.title}}</title> {# #}
9 <script>if(window.location.protocol!=="file:") {# Hack to skip preloading fonts locally - see #98769 #}
10 document.head.insertAdjacentHTML("beforeend","{{files.source_serif_4_regular}},{{files.fira_sans_regular}},{{files.fira_sans_medium}},{{files.source_code_pro_regular}},{{files.source_code_pro_semibold}}".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}${f}">`).join("")) {# #}
11 </script> {# #}
12 <link rel="stylesheet" {#+ #}
13 href="{{static_root_path|safe}}{{files.normalize_css}}"> {# #}
14 <link rel="stylesheet" {#+ #}
15 href="{{static_root_path|safe}}{{files.rustdoc_css}}"> {# #}
16 {% if !layout.default_settings.is_empty() %}
17 <script id="default-settings" {#+ #}
18 {%~ for (k, v) in layout.default_settings ~%}
19 data-{{k}}="{{v}}"
20 {% endfor %}
21 ></script> {# #}
22 {% endif %}
23 <meta name="rustdoc-vars" {#+ #}
24 data-root-path="{{page.root_path|safe}}" {#+ #}
25 data-static-root-path="{{static_root_path|safe}}" {#+ #}
26 data-current-crate="{{layout.krate}}" {#+ #}
27 data-themes="{{themes|join(",") }}" {#+ #}
28 data-resource-suffix="{{page.resource_suffix}}" {#+ #}
29 data-rustdoc-version="{{rustdoc_version}}" {#+ #}
30 data-channel="{{rust_channel}}" {#+ #}
31 data-search-js="{{files.search_js}}" {#+ #}
32 data-settings-js="{{files.settings_js}}" {#+ #}
33 > {# #}
34 <script src="{{static_root_path|safe}}{{files.storage_js}}"></script> {# #}
35 {% if page.css_class.contains("crate") %}
36 <script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {# #}
37 {% else if page.css_class == "src" %}
38 <script defer src="{{static_root_path|safe}}{{files.src_script_js}}"></script> {# #}
39 <script defer src="{{page.root_path|safe}}src-files{{page.resource_suffix}}.js"></script> {# #}
40 {% else if !page.css_class.contains("mod") %}
41 <script defer src="sidebar-items{{page.resource_suffix}}.js"></script> {# #}
42 {% else if !page.css_class.contains("sys") %}
43 <script defer src="../sidebar-items{{page.resource_suffix}}.js"></script> {# #}
44 {% endif %}
45 <script defer src="{{static_root_path|safe}}{{files.main_js}}"></script> {# #}
46 {% if layout.scrape_examples_extension %}
47 <script defer src="{{static_root_path|safe}}{{files.scrape_examples_js}}"></script> {# #}
48 {% endif %}
49 <noscript> {# #}
50 <link rel="stylesheet" {#+ #}
51 href="{{static_root_path|safe}}{{files.noscript_css}}"> {# #}
52 </noscript> {# #}
53 {% if layout.css_file_extension.is_some() %}
54 <link rel="stylesheet" {#+ #}
55 href="{{page.root_path|safe}}theme{{page.resource_suffix}}.css"> {# #}
56 {% endif %}
57 {% if !layout.favicon.is_empty() %}
58 <link rel="icon" href="{{layout.favicon}}"> {# #}
59 {% else %}
60 <link rel="alternate icon" type="image/png" {#+ #}
61 href="{{static_root_path|safe}}{{files.rust_favicon_png_32}}"> {# #}
62 <link rel="icon" type="image/svg+xml" {#+ #}
63 href="{{static_root_path|safe}}{{files.rust_favicon_svg}}"> {# #}
64 {% endif %}
65 {{ layout.external_html.in_header|safe }}
66 </head> {# #}
67 <body class="rustdoc {{+page.css_class}}"> {# #}
68 <!--[if lte IE 11]> {# #}
69 <div class="warning"> {# #}
70 This old browser is unsupported and will most likely display funky things. {# #}
71 </div> {# #}
72 <![endif]--> {# #}
73 {{ layout.external_html.before_content|safe }}
74 {% if page.css_class != "src" %}
75 <nav class="mobile-topbar"> {# #}
76 <button class="sidebar-menu-toggle" title="show sidebar"></button> {# #}
77 {% if !layout.logo.is_empty() || page.rust_logo %}
78 <a class="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> {# #}
79 {% if page.rust_logo %}
80 <img class="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt=""> {# #}
81 {% else if !layout.logo.is_empty() %}
82 <img src="{{layout.logo}}" alt=""> {# #}
83 {% endif %}
84 </a> {# #}
85 {% endif %}
86 </nav>
87 {% endif %}
88 <nav class="sidebar"> {# #}
89 {% if page.css_class != "src" %}
90 <div class="sidebar-crate">
91 {% if !layout.logo.is_empty() || page.rust_logo %}
92 <a class="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> {# #}
93 {% if page.rust_logo %}
94 <img class="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt="logo"> {# #}
95 {% else if !layout.logo.is_empty() %}
96 <img src="{{layout.logo}}" alt="logo"> {# #}
97 {% endif %}
98 </a> {# #}
99 {% endif %}
100 <h2> {# #}
101 <a href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html">{{display_krate}}</a> {# #}
102 {% if !display_krate_version_number.is_empty() %}
103 <span class="version">{{+ display_krate_version_number}}</span>
104 {% endif %}
105 </h2> {# #}
106 </div> {# #}
107 {% if !display_krate_version_extra.is_empty() %}
108 <div class="version">{{+ display_krate_version_extra}}</div> {# #}
109 {% endif %}
110 {% else %}
111 <div class="src-sidebar-title"> {# #}
112 <h2>Files</h2> {# #}
113 </div> {# #}
114 {% endif %}
115 {{ sidebar|safe }}
116 </nav> {# #}
117 <div class="sidebar-resizer"></div> {# #}
118 <main> {# #}
119 {% if page.css_class != "src" %}<div class="width-limiter">{% endif %}
120 {# defined in storage.js to avoid duplicating complex UI across every page #}
121 {# and because the search form only works if JS is enabled anyway #}
122 <rustdoc-search></rustdoc-search> {# #}
123 <section id="main-content" class="content">{{ content|safe }}</section> {# #}
124 {% if page.css_class != "src" %}</div>{% endif %}
125 </main> {# #}
126 {{ layout.external_html.after_content|safe }}
127 </body> {# #}
128 </html> {# #}