@@ -18,6 +18,7 @@ pub static HEAD: &[u8] = include_bytes!("head.hbs");
1818pub static REDIRECT : & [ u8 ] = include_bytes ! ( "redirect.hbs" ) ;
1919pub static HEADER : & [ u8 ] = include_bytes ! ( "header.hbs" ) ;
2020pub static CHROME_CSS : & [ u8 ] = include_bytes ! ( "css/chrome.css" ) ;
21+ pub static NOSCRIPT_CSS : & [ u8 ] = include_bytes ! ( "css/noscript.css" ) ;
2122pub static GENERAL_CSS : & [ u8 ] = include_bytes ! ( "css/general.css" ) ;
2223pub static PRINT_CSS : & [ u8 ] = include_bytes ! ( "css/print.css" ) ;
2324pub static VARIABLES_CSS : & [ u8 ] = include_bytes ! ( "css/variables.css" ) ;
@@ -51,6 +52,7 @@ pub struct Theme {
5152 pub redirect : Vec < u8 > ,
5253 pub header : Vec < u8 > ,
5354 pub chrome_css : Vec < u8 > ,
55+ pub noscript_css : Vec < u8 > ,
5456 pub general_css : Vec < u8 > ,
5557 pub print_css : Vec < u8 > ,
5658 pub variables_css : Vec < u8 > ,
@@ -87,6 +89,7 @@ impl Theme {
8789 ( theme_dir. join( "header.hbs" ) , & mut theme. header) ,
8890 ( theme_dir. join( "book.js" ) , & mut theme. js) ,
8991 ( theme_dir. join( "css/chrome.css" ) , & mut theme. chrome_css) ,
92+ ( theme_dir. join( "css/noscript.css" ) , & mut theme. noscript_css) ,
9093 ( theme_dir. join( "css/general.css" ) , & mut theme. general_css) ,
9194 ( theme_dir. join( "css/print.css" ) , & mut theme. print_css) ,
9295 (
@@ -175,6 +178,7 @@ impl Default for Theme {
175178 redirect : REDIRECT . to_owned ( ) ,
176179 header : HEADER . to_owned ( ) ,
177180 chrome_css : CHROME_CSS . to_owned ( ) ,
181+ noscript_css : NOSCRIPT_CSS . to_owned ( ) ,
178182 general_css : GENERAL_CSS . to_owned ( ) ,
179183 print_css : PRINT_CSS . to_owned ( ) ,
180184 variables_css : VARIABLES_CSS . to_owned ( ) ,
@@ -235,6 +239,7 @@ mod tests {
235239 "favicon.png" ,
236240 "favicon.svg" ,
237241 "css/chrome.css" ,
242+ "css/noscript.css" ,
238243 "css/general.css" ,
239244 "css/print.css" ,
240245 "css/variables.css" ,
@@ -264,6 +269,7 @@ mod tests {
264269 redirect : Vec :: new ( ) ,
265270 header : Vec :: new ( ) ,
266271 chrome_css : Vec :: new ( ) ,
272+ noscript_css : Vec :: new ( ) ,
267273 general_css : Vec :: new ( ) ,
268274 print_css : Vec :: new ( ) ,
269275 variables_css : Vec :: new ( ) ,
0 commit comments