@@ -21,7 +21,8 @@ pub static CHROME_CSS: &[u8] = include_bytes!("css/chrome.css");
21
21
pub static GENERAL_CSS : & [ u8 ] = include_bytes ! ( "css/general.css" ) ;
22
22
pub static PRINT_CSS : & [ u8 ] = include_bytes ! ( "css/print.css" ) ;
23
23
pub static VARIABLES_CSS : & [ u8 ] = include_bytes ! ( "css/variables.css" ) ;
24
- pub static FAVICON : & [ u8 ] = include_bytes ! ( "favicon.png" ) ;
24
+ pub static FAVICON_PNG : & [ u8 ] = include_bytes ! ( "favicon.png" ) ;
25
+ pub static FAVICON_SVG : & [ u8 ] = include_bytes ! ( "favicon.svg" ) ;
25
26
pub static JS : & [ u8 ] = include_bytes ! ( "book.js" ) ;
26
27
pub static HIGHLIGHT_JS : & [ u8 ] = include_bytes ! ( "highlight.js" ) ;
27
28
pub static TOMORROW_NIGHT_CSS : & [ u8 ] = include_bytes ! ( "tomorrow-night.css" ) ;
@@ -53,7 +54,8 @@ pub struct Theme {
53
54
pub general_css : Vec < u8 > ,
54
55
pub print_css : Vec < u8 > ,
55
56
pub variables_css : Vec < u8 > ,
56
- pub favicon : Vec < u8 > ,
57
+ pub favicon_png : Vec < u8 > ,
58
+ pub favicon_svg : Vec < u8 > ,
57
59
pub js : Vec < u8 > ,
58
60
pub highlight_css : Vec < u8 > ,
59
61
pub tomorrow_night_css : Vec < u8 > ,
@@ -89,7 +91,8 @@ impl Theme {
89
91
theme_dir. join( "css/variables.css" ) ,
90
92
& mut theme. variables_css,
91
93
) ,
92
- ( theme_dir. join( "favicon.png" ) , & mut theme. favicon) ,
94
+ ( theme_dir. join( "favicon.png" ) , & mut theme. favicon_png) ,
95
+ ( theme_dir. join( "favicon.svg" ) , & mut theme. favicon_svg) ,
93
96
( theme_dir. join( "highlight.js" ) , & mut theme. highlight_js) ,
94
97
( theme_dir. join( "clipboard.min.js" ) , & mut theme. clipboard_js) ,
95
98
( theme_dir. join( "highlight.css" ) , & mut theme. highlight_css) ,
@@ -129,7 +132,8 @@ impl Default for Theme {
129
132
general_css : GENERAL_CSS . to_owned ( ) ,
130
133
print_css : PRINT_CSS . to_owned ( ) ,
131
134
variables_css : VARIABLES_CSS . to_owned ( ) ,
132
- favicon : FAVICON . to_owned ( ) ,
135
+ favicon_png : FAVICON_PNG . to_owned ( ) ,
136
+ favicon_svg : FAVICON_SVG . to_owned ( ) ,
133
137
js : JS . to_owned ( ) ,
134
138
highlight_css : HIGHLIGHT_CSS . to_owned ( ) ,
135
139
tomorrow_night_css : TOMORROW_NIGHT_CSS . to_owned ( ) ,
@@ -182,6 +186,7 @@ mod tests {
182
186
"redirect.hbs" ,
183
187
"header.hbs" ,
184
188
"favicon.png" ,
189
+ "favicon.svg" ,
185
190
"css/chrome.css" ,
186
191
"css/fonts.css" ,
187
192
"css/general.css" ,
@@ -214,7 +219,8 @@ mod tests {
214
219
general_css : Vec :: new ( ) ,
215
220
print_css : Vec :: new ( ) ,
216
221
variables_css : Vec :: new ( ) ,
217
- favicon : Vec :: new ( ) ,
222
+ favicon_png : Vec :: new ( ) ,
223
+ favicon_svg : Vec :: new ( ) ,
218
224
js : Vec :: new ( ) ,
219
225
highlight_css : Vec :: new ( ) ,
220
226
tomorrow_night_css : Vec :: new ( ) ,
0 commit comments