8
8
//! directly written to a `Write` handle.
9
9
10
10
/// The file contents of the main `rustdoc.css` file, responsible for the core layout of the page.
11
- crate static RUSTDOC_CSS : & str = include_str ! ( "static/rustdoc.css" ) ;
11
+ crate static RUSTDOC_CSS : & str = include_str ! ( "static/css/ rustdoc.css" ) ;
12
12
13
13
/// The file contents of `settings.css`, responsible for the items on the settings page.
14
- crate static SETTINGS_CSS : & str = include_str ! ( "static/settings.css" ) ;
14
+ crate static SETTINGS_CSS : & str = include_str ! ( "static/css/ settings.css" ) ;
15
15
16
16
/// The file contents of the `noscript.css` file, used in case JS isn't supported or is disabled.
17
- crate static NOSCRIPT_CSS : & str = include_str ! ( "static/noscript.css" ) ;
17
+ crate static NOSCRIPT_CSS : & str = include_str ! ( "static/css/ noscript.css" ) ;
18
18
19
19
/// The file contents of `normalize.css`, included to even out standard elements between browser
20
20
/// implementations.
21
- crate static NORMALIZE_CSS : & str = include_str ! ( "static/normalize.css" ) ;
21
+ crate static NORMALIZE_CSS : & str = include_str ! ( "static/css/ normalize.css" ) ;
22
22
23
23
/// The file contents of `main.js`, which contains the core JavaScript used on documentation pages,
24
24
/// including search behavior and docblock folding, among others.
25
- crate static MAIN_JS : & str = include_str ! ( "static/main.js" ) ;
25
+ crate static MAIN_JS : & str = include_str ! ( "static/js/ main.js" ) ;
26
26
27
27
/// The file contents of `search.js`, which contains the search behavior.
28
- crate static SEARCH_JS : & str = include_str ! ( "static/search.js" ) ;
28
+ crate static SEARCH_JS : & str = include_str ! ( "static/js/ search.js" ) ;
29
29
30
30
/// The file contents of `settings.js`, which contains the JavaScript used to handle the settings
31
31
/// page.
32
- crate static SETTINGS_JS : & str = include_str ! ( "static/settings.js" ) ;
32
+ crate static SETTINGS_JS : & str = include_str ! ( "static/js/ settings.js" ) ;
33
33
34
34
/// The file contents of `storage.js`, which contains functionality related to browser Local
35
35
/// Storage, used to store documentation settings.
36
- crate static STORAGE_JS : & str = include_str ! ( "static/storage.js" ) ;
36
+ crate static STORAGE_JS : & str = include_str ! ( "static/js/ storage.js" ) ;
37
37
38
38
/// The file contents of `brush.svg`, the icon used for the theme-switch button.
39
- crate static BRUSH_SVG : & [ u8 ] = include_bytes ! ( "static/brush.svg" ) ;
39
+ crate static BRUSH_SVG : & [ u8 ] = include_bytes ! ( "static/images/ brush.svg" ) ;
40
40
41
41
/// The file contents of `wheel.svg`, the icon used for the settings button.
42
- crate static WHEEL_SVG : & [ u8 ] = include_bytes ! ( "static/wheel.svg" ) ;
42
+ crate static WHEEL_SVG : & [ u8 ] = include_bytes ! ( "static/images/ wheel.svg" ) ;
43
43
44
44
/// The file contents of `clipboard.svg`, the icon used for the "copy path" button.
45
- crate static CLIPBOARD_SVG : & [ u8 ] = include_bytes ! ( "static/clipboard.svg" ) ;
45
+ crate static CLIPBOARD_SVG : & [ u8 ] = include_bytes ! ( "static/images/ clipboard.svg" ) ;
46
46
47
47
/// The file contents of `down-arrow.svg`, the icon used for the crate choice combobox.
48
- crate static DOWN_ARROW_SVG : & [ u8 ] = include_bytes ! ( "static/down-arrow.svg" ) ;
48
+ crate static DOWN_ARROW_SVG : & [ u8 ] = include_bytes ! ( "static/images/ down-arrow.svg" ) ;
49
49
50
50
/// The contents of `COPYRIGHT.txt`, the license listing for files distributed with documentation
51
51
/// output.
@@ -58,113 +58,114 @@ crate static LICENSE_APACHE: &[u8] = include_bytes!("static/LICENSE-APACHE.txt")
58
58
crate static LICENSE_MIT : & [ u8 ] = include_bytes ! ( "static/LICENSE-MIT.txt" ) ;
59
59
60
60
/// The contents of `rust-logo.png`, the default icon of the documentation.
61
- crate static RUST_LOGO : & [ u8 ] = include_bytes ! ( "static/rust-logo.png" ) ;
61
+ crate static RUST_LOGO : & [ u8 ] = include_bytes ! ( "static/images/ rust-logo.png" ) ;
62
62
/// The default documentation favicons (SVG and PNG fallbacks)
63
- crate static RUST_FAVICON_SVG : & [ u8 ] = include_bytes ! ( "static/favicon.svg" ) ;
64
- crate static RUST_FAVICON_PNG_16 : & [ u8 ] = include_bytes ! ( "static/favicon-16x16.png" ) ;
65
- crate static RUST_FAVICON_PNG_32 : & [ u8 ] = include_bytes ! ( "static/favicon-32x32.png" ) ;
63
+ crate static RUST_FAVICON_SVG : & [ u8 ] = include_bytes ! ( "static/images/ favicon.svg" ) ;
64
+ crate static RUST_FAVICON_PNG_16 : & [ u8 ] = include_bytes ! ( "static/images/ favicon-16x16.png" ) ;
65
+ crate static RUST_FAVICON_PNG_32 : & [ u8 ] = include_bytes ! ( "static/images/ favicon-32x32.png" ) ;
66
66
67
67
crate static PAGE : & str = include_str ! ( "templates/page.html" ) ;
68
68
69
69
/// The built-in themes given to every documentation site.
70
70
crate mod themes {
71
71
/// The "light" theme, selected by default when no setting is available. Used as the basis for
72
72
/// the `--check-theme` functionality.
73
- crate static LIGHT : & str = include_str ! ( "static/themes/light.css" ) ;
73
+ crate static LIGHT : & str = include_str ! ( "static/css/ themes/light.css" ) ;
74
74
75
75
/// The "dark" theme.
76
- crate static DARK : & str = include_str ! ( "static/themes/dark.css" ) ;
76
+ crate static DARK : & str = include_str ! ( "static/css/ themes/dark.css" ) ;
77
77
78
78
/// The "ayu" theme.
79
- crate static AYU : & str = include_str ! ( "static/themes/ayu.css" ) ;
79
+ crate static AYU : & str = include_str ! ( "static/css/ themes/ayu.css" ) ;
80
80
}
81
81
82
82
/// Files related to the Fira Sans font.
83
83
crate mod fira_sans {
84
84
/// The file `FiraSans-Regular.woff`, the Regular variant of the Fira Sans font.
85
- crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/FiraSans-Regular.woff" ) ;
85
+ crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/fonts/ FiraSans-Regular.woff" ) ;
86
86
87
87
/// The file `FiraSans-Regular.woff2`, the Regular variant of the Fira Sans font in woff2.
88
- crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/FiraSans-Regular.woff2" ) ;
88
+ crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/fonts/ FiraSans-Regular.woff2" ) ;
89
89
90
90
/// The file `FiraSans-Medium.woff`, the Medium variant of the Fira Sans font.
91
- crate static MEDIUM : & [ u8 ] = include_bytes ! ( "static/FiraSans-Medium.woff" ) ;
91
+ crate static MEDIUM : & [ u8 ] = include_bytes ! ( "static/fonts/ FiraSans-Medium.woff" ) ;
92
92
93
93
/// The file `FiraSans-Medium.woff2`, the Medium variant of the Fira Sans font in woff2.
94
- crate static MEDIUM2 : & [ u8 ] = include_bytes ! ( "static/FiraSans-Medium.woff2" ) ;
94
+ crate static MEDIUM2 : & [ u8 ] = include_bytes ! ( "static/fonts/ FiraSans-Medium.woff2" ) ;
95
95
96
96
/// The file `FiraSans-LICENSE.txt`, the license text for the Fira Sans font.
97
- crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/FiraSans-LICENSE.txt" ) ;
97
+ crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/fonts/ FiraSans-LICENSE.txt" ) ;
98
98
}
99
99
100
100
/// Files related to the Source Serif 4 font.
101
101
crate mod source_serif_4 {
102
102
/// The file `SourceSerif4-Regular.ttf.woff`, the Regular variant of the Source Serif 4 font.
103
- crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-Regular.ttf.woff" ) ;
103
+ crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-Regular.ttf.woff" ) ;
104
104
105
105
/// The file `SourceSerif4-Regular.ttf.woff2`, the Regular variant of the Source Serif 4 font in
106
106
/// woff2.
107
- crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-Regular.ttf.woff2" ) ;
107
+ crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-Regular.ttf.woff2" ) ;
108
108
109
109
/// The file `SourceSerif4-Bold.ttf.woff`, the Bold variant of the Source Serif 4 font.
110
- crate static BOLD : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-Bold.ttf.woff" ) ;
110
+ crate static BOLD : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-Bold.ttf.woff" ) ;
111
111
112
112
/// The file `SourceSerif4-Bold.ttf.woff2`, the Bold variant of the Source Serif 4 font in
113
113
/// woff2.
114
- crate static BOLD2 : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-Bold.ttf.woff2" ) ;
114
+ crate static BOLD2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-Bold.ttf.woff2" ) ;
115
115
116
116
/// The file `SourceSerif4-It.ttf.woff`, the Italic variant of the Source Serif 4 font.
117
- crate static ITALIC : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-It.ttf.woff" ) ;
117
+ crate static ITALIC : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-It.ttf.woff" ) ;
118
118
119
119
/// The file `SourceSerif4-It.ttf.woff2`, the Italic variant of the Source Serif 4 font in
120
120
/// woff2.
121
- crate static ITALIC2 : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-It.ttf.woff2" ) ;
121
+ crate static ITALIC2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-It.ttf.woff2" ) ;
122
122
123
123
/// The file `SourceSerif4-LICENSE.txt`, the license text for the Source Serif 4 font.
124
- crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/SourceSerif4-LICENSE.md" ) ;
124
+ crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceSerif4-LICENSE.md" ) ;
125
125
}
126
126
127
127
/// Files related to the Source Code Pro font.
128
128
crate mod source_code_pro {
129
129
/// The file `SourceCodePro-Regular.ttf.woff`, the Regular variant of the Source Code Pro font.
130
- crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-Regular.ttf.woff" ) ;
130
+ crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-Regular.ttf.woff" ) ;
131
131
132
132
/// The file `SourceCodePro-Regular.ttf.woff2`, the Regular variant of the Source Code Pro font
133
133
/// in woff2.
134
- crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-Regular.ttf.woff2" ) ;
134
+ crate static REGULAR2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-Regular.ttf.woff2" ) ;
135
135
136
136
/// The file `SourceCodePro-Semibold.ttf.woff`, the Semibold variant of the Source Code Pro
137
137
/// font.
138
- crate static SEMIBOLD : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-Semibold.ttf.woff" ) ;
138
+ crate static SEMIBOLD : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-Semibold.ttf.woff" ) ;
139
139
140
140
/// The file `SourceCodePro-Semibold.ttf.woff2`, the Semibold variant of the Source Code Pro
141
141
/// font in woff2.
142
- crate static SEMIBOLD2 : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-Semibold.ttf.woff2" ) ;
142
+ crate static SEMIBOLD2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-Semibold.ttf.woff2" ) ;
143
143
144
144
/// The file `SourceCodePro-It.ttf.woff`, the Italic variant of the Source Code Pro font.
145
- crate static ITALIC : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-It.ttf.woff" ) ;
145
+ crate static ITALIC : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-It.ttf.woff" ) ;
146
146
147
147
/// The file `SourceCodePro-It.ttf.woff2`, the Italic variant of the Source Code Pro font in
148
148
/// woff2.
149
- crate static ITALIC2 : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-It.ttf.woff2" ) ;
149
+ crate static ITALIC2 : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-It.ttf.woff2" ) ;
150
150
151
151
/// The file `SourceCodePro-LICENSE.txt`, the license text of the Source Code Pro font.
152
- crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/SourceCodePro-LICENSE.txt" ) ;
152
+ crate static LICENSE : & [ u8 ] = include_bytes ! ( "static/fonts/ SourceCodePro-LICENSE.txt" ) ;
153
153
}
154
154
155
155
crate mod noto_sans_kr {
156
156
/// The file `noto-sans-kr-v13-korean-regular.woff`, the Regular variant of the Noto Sans KR
157
157
/// font.
158
- crate static REGULAR : & [ u8 ] = include_bytes ! ( "static/noto-sans-kr-v13-korean-regular.woff" ) ;
158
+ crate static REGULAR : & [ u8 ] =
159
+ include_bytes ! ( "static/fonts/noto-sans-kr-v13-korean-regular.woff" ) ;
159
160
160
161
/// The file `noto-sans-kr-v13-korean-regular-LICENSE.txt`, the license text of the Noto Sans KR
161
162
/// font.
162
163
crate static LICENSE : & [ u8 ] =
163
- include_bytes ! ( "static/noto-sans-kr-v13-korean-regular-LICENSE.txt" ) ;
164
+ include_bytes ! ( "static/fonts/ noto-sans-kr-v13-korean-regular-LICENSE.txt" ) ;
164
165
}
165
166
166
167
/// Files related to the sidebar in rustdoc sources.
167
168
crate mod sidebar {
168
169
/// File script to handle sidebar.
169
- crate static SOURCE_SCRIPT : & str = include_str ! ( "static/source-script.js" ) ;
170
+ crate static SOURCE_SCRIPT : & str = include_str ! ( "static/js/ source-script.js" ) ;
170
171
}
0 commit comments