@@ -18,6 +18,7 @@ pub static HEAD: &[u8] = include_bytes!("head.hbs");
18
18
pub static REDIRECT : & [ u8 ] = include_bytes ! ( "redirect.hbs" ) ;
19
19
pub static HEADER : & [ u8 ] = include_bytes ! ( "header.hbs" ) ;
20
20
pub static CHROME_CSS : & [ u8 ] = include_bytes ! ( "css/chrome.css" ) ;
21
+ pub static NOSCRIPT_CSS : & [ u8 ] = include_bytes ! ( "css/noscript.css" ) ;
21
22
pub static GENERAL_CSS : & [ u8 ] = include_bytes ! ( "css/general.css" ) ;
22
23
pub static PRINT_CSS : & [ u8 ] = include_bytes ! ( "css/print.css" ) ;
23
24
pub static VARIABLES_CSS : & [ u8 ] = include_bytes ! ( "css/variables.css" ) ;
@@ -51,6 +52,7 @@ pub struct Theme {
51
52
pub redirect : Vec < u8 > ,
52
53
pub header : Vec < u8 > ,
53
54
pub chrome_css : Vec < u8 > ,
55
+ pub noscript_css : Vec < u8 > ,
54
56
pub general_css : Vec < u8 > ,
55
57
pub print_css : Vec < u8 > ,
56
58
pub variables_css : Vec < u8 > ,
@@ -87,6 +89,7 @@ impl Theme {
87
89
( theme_dir. join( "header.hbs" ) , & mut theme. header) ,
88
90
( theme_dir. join( "book.js" ) , & mut theme. js) ,
89
91
( theme_dir. join( "css/chrome.css" ) , & mut theme. chrome_css) ,
92
+ ( theme_dir. join( "css/noscript.css" ) , & mut theme. noscript_css) ,
90
93
( theme_dir. join( "css/general.css" ) , & mut theme. general_css) ,
91
94
( theme_dir. join( "css/print.css" ) , & mut theme. print_css) ,
92
95
(
@@ -175,6 +178,7 @@ impl Default for Theme {
175
178
redirect : REDIRECT . to_owned ( ) ,
176
179
header : HEADER . to_owned ( ) ,
177
180
chrome_css : CHROME_CSS . to_owned ( ) ,
181
+ noscript_css : NOSCRIPT_CSS . to_owned ( ) ,
178
182
general_css : GENERAL_CSS . to_owned ( ) ,
179
183
print_css : PRINT_CSS . to_owned ( ) ,
180
184
variables_css : VARIABLES_CSS . to_owned ( ) ,
@@ -235,6 +239,7 @@ mod tests {
235
239
"favicon.png" ,
236
240
"favicon.svg" ,
237
241
"css/chrome.css" ,
242
+ "css/noscript.css" ,
238
243
"css/general.css" ,
239
244
"css/print.css" ,
240
245
"css/variables.css" ,
@@ -264,6 +269,7 @@ mod tests {
264
269
redirect : Vec :: new ( ) ,
265
270
header : Vec :: new ( ) ,
266
271
chrome_css : Vec :: new ( ) ,
272
+ noscript_css : Vec :: new ( ) ,
267
273
general_css : Vec :: new ( ) ,
268
274
print_css : Vec :: new ( ) ,
269
275
variables_css : Vec :: new ( ) ,
0 commit comments