@@ -17,7 +17,8 @@ pub static INDEX: &[u8] = include_bytes!("index.hbs");
17
17
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
- pub static TOC : & [ u8 ] = include_bytes ! ( "toc.js.hbs" ) ;
20
+ pub static TOC_JS : & [ u8 ] = include_bytes ! ( "toc.js.hbs" ) ;
21
+ pub static TOC_HTML : & [ u8 ] = include_bytes ! ( "toc.html.hbs" ) ;
21
22
pub static CHROME_CSS : & [ u8 ] = include_bytes ! ( "css/chrome.css" ) ;
22
23
pub static GENERAL_CSS : & [ u8 ] = include_bytes ! ( "css/general.css" ) ;
23
24
pub static PRINT_CSS : & [ u8 ] = include_bytes ! ( "css/print.css" ) ;
@@ -51,7 +52,8 @@ pub struct Theme {
51
52
pub head : Vec < u8 > ,
52
53
pub redirect : Vec < u8 > ,
53
54
pub header : Vec < u8 > ,
54
- pub toc : Vec < u8 > ,
55
+ pub toc_js : Vec < u8 > ,
56
+ pub toc_html : Vec < u8 > ,
55
57
pub chrome_css : Vec < u8 > ,
56
58
pub general_css : Vec < u8 > ,
57
59
pub print_css : Vec < u8 > ,
@@ -87,7 +89,8 @@ impl Theme {
87
89
( theme_dir. join( "head.hbs" ) , & mut theme. head) ,
88
90
( theme_dir. join( "redirect.hbs" ) , & mut theme. redirect) ,
89
91
( theme_dir. join( "header.hbs" ) , & mut theme. header) ,
90
- ( theme_dir. join( "toc.js.hbs" ) , & mut theme. toc) ,
92
+ ( theme_dir. join( "toc.js.hbs" ) , & mut theme. toc_js) ,
93
+ ( theme_dir. join( "toc.html.hbs" ) , & mut theme. toc_html) ,
91
94
( theme_dir. join( "book.js" ) , & mut theme. js) ,
92
95
( theme_dir. join( "css/chrome.css" ) , & mut theme. chrome_css) ,
93
96
( theme_dir. join( "css/general.css" ) , & mut theme. general_css) ,
@@ -177,7 +180,8 @@ impl Default for Theme {
177
180
head : HEAD . to_owned ( ) ,
178
181
redirect : REDIRECT . to_owned ( ) ,
179
182
header : HEADER . to_owned ( ) ,
180
- toc : TOC . to_owned ( ) ,
183
+ toc_js : TOC_JS . to_owned ( ) ,
184
+ toc_html : TOC_HTML . to_owned ( ) ,
181
185
chrome_css : CHROME_CSS . to_owned ( ) ,
182
186
general_css : GENERAL_CSS . to_owned ( ) ,
183
187
print_css : PRINT_CSS . to_owned ( ) ,
@@ -237,6 +241,7 @@ mod tests {
237
241
"redirect.hbs" ,
238
242
"header.hbs" ,
239
243
"toc.js.hbs" ,
244
+ "toc.html.hbs" ,
240
245
"favicon.png" ,
241
246
"favicon.svg" ,
242
247
"css/chrome.css" ,
@@ -268,7 +273,8 @@ mod tests {
268
273
head : Vec :: new ( ) ,
269
274
redirect : Vec :: new ( ) ,
270
275
header : Vec :: new ( ) ,
271
- toc : Vec :: new ( ) ,
276
+ toc_js : Vec :: new ( ) ,
277
+ toc_html : Vec :: new ( ) ,
272
278
chrome_css : Vec :: new ( ) ,
273
279
general_css : Vec :: new ( ) ,
274
280
print_css : Vec :: new ( ) ,
0 commit comments