|
12 | 12 | <linkrel="stylesheet" {#+#} |
13 | 13 | href="{{static_root_path|safe}}{{files.normalize_css}}"> {# #} |
14 | 14 | <linkrel="stylesheet" {#+#} |
15 | | -href="{{static_root_path|safe}}{{files.rustdoc_css}}"> {# #} |
| 15 | +href="{{static_root_path|safe}}{{files.rustdoc_css}}"> |
16 | 16 | {% if !layout.default_settings.is_empty() %} |
17 | 17 | <scriptid="default-settings" {#+#} |
18 | 18 | {%~for(k,v)inlayout.default_settings~%} |
19 | 19 | data-{{k}}="{{v}}" |
20 | 20 | {%endfor%} |
21 | | -></script> {# #} |
| 21 | +></script> |
22 | 22 | {% endif %} |
23 | 23 | <metaname="rustdoc-vars" {#+#} |
24 | 24 | data-root-path="{{page.root_path|safe}}" {#+#} |
|
31 | 31 | data-search-js="{{files.search_js}}" {#+#} |
32 | 32 | data-settings-js="{{files.settings_js}}" {#+#} |
33 | 33 | > {# #} |
34 | | -<scriptsrc="{{static_root_path|safe}}{{files.storage_js}}"></script> {# #} |
| 34 | +<scriptsrc="{{static_root_path|safe}}{{files.storage_js}}"></script> |
35 | 35 | {% if page.css_class.contains("crate") %} |
36 | | -<scriptdefersrc="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {# #} |
| 36 | +<scriptdefersrc="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> |
37 | 37 | {% else if page.css_class == "src" %} |
38 | 38 | <scriptdefersrc="{{static_root_path|safe}}{{files.src_script_js}}"></script> {# #} |
39 | | -<scriptdefersrc="{{page.root_path|safe}}src-files{{page.resource_suffix}}.js"></script> {# #} |
| 39 | +<scriptdefersrc="{{page.root_path|safe}}src-files{{page.resource_suffix}}.js"></script> |
40 | 40 | {% else if !page.css_class.contains("mod") %} |
41 | | -<scriptdefersrc="sidebar-items{{page.resource_suffix}}.js"></script> {# #} |
| 41 | +<scriptdefersrc="sidebar-items{{page.resource_suffix}}.js"></script> |
42 | 42 | {% else if !page.css_class.contains("sys") %} |
43 | | -<scriptdefersrc="../sidebar-items{{page.resource_suffix}}.js"></script> {# #} |
| 43 | +<scriptdefersrc="../sidebar-items{{page.resource_suffix}}.js"></script> |
44 | 44 | {% endif %} |
45 | | -<scriptdefersrc="{{static_root_path|safe}}{{files.main_js}}"></script> {# #} |
| 45 | +<scriptdefersrc="{{static_root_path|safe}}{{files.main_js}}"></script> |
46 | 46 | {% if layout.scrape_examples_extension %} |
47 | | -<scriptdefersrc="{{static_root_path|safe}}{{files.scrape_examples_js}}"></script> {# #} |
| 47 | +<scriptdefersrc="{{static_root_path|safe}}{{files.scrape_examples_js}}"></script> |
48 | 48 | {% endif %} |
49 | 49 | <noscript> {# #} |
50 | 50 | <linkrel="stylesheet" {#+#} |
51 | 51 | href="{{static_root_path|safe}}{{files.noscript_css}}"> {# #} |
52 | | -</noscript> {# #} |
| 52 | +</noscript> |
53 | 53 | {% if layout.css_file_extension.is_some() %} |
54 | 54 | <linkrel="stylesheet" {#+#} |
55 | | -href="{{page.root_path|safe}}theme{{page.resource_suffix}}.css"> {# #} |
| 55 | +href="{{page.root_path|safe}}theme{{page.resource_suffix}}.css"> |
56 | 56 | {% endif %} |
57 | 57 | {% if !layout.favicon.is_empty() %} |
58 | | -<linkrel="icon" href="{{layout.favicon}}"> {# #} |
| 58 | +<linkrel="icon" href="{{layout.favicon}}"> |
59 | 59 | {% else %} |
60 | 60 | <linkrel="alternate icon" type="image/png" {#+#} |
61 | 61 | href="{{static_root_path|safe}}{{files.rust_favicon_png_32}}"> {# #} |
62 | 62 | <linkrel="icon" type="image/svg+xml" {#+#} |
63 | | -href="{{static_root_path|safe}}{{files.rust_favicon_svg}}"> {# #} |
| 63 | +href="{{static_root_path|safe}}{{files.rust_favicon_svg}}"> |
64 | 64 | {% endif %} |
65 | 65 | {{ layout.external_html.in_header|safe }} |
66 | 66 | </head> {# #} |
|
69 | 69 | <div class="warning"> {# #} |
70 | 70 | This old browser is unsupported and will most likely display funky things. {# #} |
71 | 71 | </div> {# #} |
72 | | - <![endif]--> {# #} |
| 72 | + <![endif]--> |
73 | 73 | {{ layout.external_html.before_content|safe }} |
74 | 74 | {% if page.css_class != "src" %} |
75 | 75 | <navclass="mobile-topbar"> {# #} |
76 | | -<buttonclass="sidebar-menu-toggle" title="show sidebar"></button> {# #} |
| 76 | +<buttonclass="sidebar-menu-toggle" title="show sidebar"></button> |
77 | 77 | {% if !layout.logo.is_empty() || page.rust_logo %} |
78 | | -<aclass="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> {# #} |
| 78 | +<aclass="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> |
79 | 79 | {% if page.rust_logo %} |
80 | | -<imgclass="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt=""> {# #} |
| 80 | +<imgclass="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt=""> |
81 | 81 | {% else if !layout.logo.is_empty() %} |
82 | | -<imgsrc="{{layout.logo}}" alt=""> {# #} |
| 82 | +<imgsrc="{{layout.logo}}" alt=""> |
83 | 83 | {% endif %} |
84 | | -</a> {# #} |
| 84 | +</a> |
85 | 85 | {% endif %} |
86 | 86 | </nav> |
87 | 87 | {% endif %} |
88 | | -<navclass="sidebar"> {# #} |
| 88 | +<navclass="sidebar"> |
89 | 89 | {% if page.css_class != "src" %} |
90 | 90 | <divclass="sidebar-crate"> |
91 | 91 | {% if !layout.logo.is_empty() || page.rust_logo %} |
92 | | -<aclass="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> {# #} |
| 92 | +<aclass="logo-container" href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html"> |
93 | 93 | {% if page.rust_logo %} |
94 | | -<imgclass="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt="logo"> {# #} |
| 94 | +<imgclass="rust-logo" src="{{static_root_path|safe}}{{files.rust_logo_svg}}" alt="logo"> |
95 | 95 | {% else if !layout.logo.is_empty() %} |
96 | | -<imgsrc="{{layout.logo}}" alt="logo"> {# #} |
| 96 | +<imgsrc="{{layout.logo}}" alt="logo"> |
97 | 97 | {% endif %} |
98 | | -</a> {# #} |
| 98 | +</a> |
99 | 99 | {% endif %} |
100 | 100 | <h2> {# #} |
101 | | -<ahref="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html">{{display_krate|wrapped|safe}}</a> {# #} |
| 101 | +<ahref="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html">{{display_krate|wrapped|safe}}</a> |
102 | 102 | {% if !display_krate_version_number.is_empty() %} |
103 | 103 | <spanclass="version">{{+ display_krate_version_number}}</span> |
104 | 104 | {% endif %} |
105 | 105 | </h2> {# #} |
106 | | -</div> {# #} |
| 106 | +</div> |
107 | 107 | {% if !display_krate_version_extra.is_empty() %} |
108 | | -<divclass="version">{{+ display_krate_version_extra}}</div> {# #} |
| 108 | +<divclass="version">{{+ display_krate_version_extra}}</div> |
109 | 109 | {% endif %} |
110 | 110 | {% else %} |
111 | 111 | <divclass="src-sidebar-title"> {# #} |
112 | 112 | <h2>Files</h2> {# #} |
113 | | -</div> {# #} |
| 113 | +</div> |
114 | 114 | {% endif %} |
115 | 115 | {{ sidebar|safe }} |
116 | 116 | </nav> {# #} |
117 | 117 | <divclass="sidebar-resizer"></div> {# #} |
118 | | -<main> {# #} |
| 118 | +<main> |
119 | 119 | {% if page.css_class != "src" %}<divclass="width-limiter">{% endif %} |
120 | 120 | {# defined in storage.js to avoid duplicating complex UI across every page #} |
121 | 121 | {# and because the search form only works if JS is enabled anyway #} |
122 | 122 | <rustdoc-search></rustdoc-search> {# #} |
123 | | -<sectionid="main-content" class="content">{{ content|safe }}</section> {# #} |
| 123 | +<sectionid="main-content" class="content">{{ content|safe }}</section> |
124 | 124 | {% if page.css_class != "src" %}</div>{% endif %} |
125 | | -</main> {# #} |
| 125 | +</main> |
126 | 126 | {{ layout.external_html.after_content|safe }} |
127 | 127 | </body> {# #} |
128 | 128 | </html> {# #} |
0 commit comments