File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ use std::io;
18
18
use std:: io:: Write ;
19
19
use std:: io:: ErrorKind ;
20
20
use std:: process:: Command ;
21
+ use std:: collections:: HashMap ;
21
22
22
23
use { theme, parse, utils} ;
23
24
use renderer:: { Renderer , HtmlHandlebars } ;
24
25
25
26
26
- pub struct MDBook {
27
+ pub struct MDBook < ' a > {
27
28
root : PathBuf ,
28
29
dest : PathBuf ,
29
30
src : PathBuf ,
@@ -33,12 +34,13 @@ pub struct MDBook {
33
34
pub description : String ,
34
35
35
36
pub content : Vec < BookItem > ,
37
+ books : HashMap < & ' a str , Book > ,
36
38
renderer : Box < Renderer > ,
37
39
38
40
livereload : Option < String > ,
39
41
}
40
42
41
- impl MDBook {
43
+ impl < ' a > MDBook < ' a > {
42
44
/// Create a new `MDBook` struct with root directory `root`
43
45
///
44
46
/// - The default source directory is set to `root/src`
@@ -62,6 +64,7 @@ impl MDBook {
62
64
description : String :: new ( ) ,
63
65
64
66
content : vec ! [ ] ,
67
+ books : HashMap :: new ( ) ,
65
68
renderer : Box :: new ( HtmlHandlebars :: new ( ) ) ,
66
69
67
70
livereload : None ,
You can’t perform that action at this time.
0 commit comments