@@ -40,7 +40,7 @@ pub struct MDBook {
4040 pub book : Book ,
4141 renderers : Vec < Box < dyn Renderer > > ,
4242
43- /// List of pre-processors to be run on the book
43+ /// List of pre-processors to be run on the book.
4444 preprocessors : Vec < Box < dyn Preprocessor > > ,
4545}
4646
@@ -78,7 +78,7 @@ impl MDBook {
7878 MDBook :: load_with_config ( book_root, config)
7979 }
8080
81- /// Load a book from its root directory using a custom config .
81+ /// Load a book from its root directory using a custom `Config` .
8282 pub fn load_with_config < P : Into < PathBuf > > ( book_root : P , config : Config ) -> Result < MDBook > {
8383 let root = book_root. into ( ) ;
8484
@@ -97,7 +97,7 @@ impl MDBook {
9797 } )
9898 }
9999
100- /// Load a book from its root directory using a custom config and a custom summary.
100+ /// Load a book from its root directory using a custom `Config` and a custom summary.
101101 pub fn load_with_config_and_summary < P : Into < PathBuf > > (
102102 book_root : P ,
103103 config : Config ,
@@ -121,7 +121,7 @@ impl MDBook {
121121 }
122122
123123 /// Returns a flat depth-first iterator over the elements of the book,
124- /// it returns an [ BookItem enum](bookitem.html) :
124+ /// it returns a [` BookItem`] enum:
125125 /// `(section: String, bookitem: &BookItem)`
126126 ///
127127 /// ```no_run
@@ -180,7 +180,7 @@ impl MDBook {
180180 Ok ( ( ) )
181181 }
182182
183- /// Run the entire build process for a particular `Renderer`.
183+ /// Run the entire build process for a particular [ `Renderer`] .
184184 pub fn execute_build_process ( & self , renderer : & dyn Renderer ) -> Result < ( ) > {
185185 let mut preprocessed_book = self . book . clone ( ) ;
186186 let preprocess_ctx = PreprocessorContext :: new (
@@ -219,14 +219,14 @@ impl MDBook {
219219 }
220220
221221 /// You can change the default renderer to another one by using this method.
222- /// The only requirement is for your renderer to implement the [`Renderer`
223- /// trait](../renderer/trait.Renderer.html)
222+ /// The only requirement is that your renderer implement the [`Renderer`]
223+ /// trait.
224224 pub fn with_renderer < R : Renderer + ' static > ( & mut self , renderer : R ) -> & mut Self {
225225 self . renderers . push ( Box :: new ( renderer) ) ;
226226 self
227227 }
228228
229- /// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book.
229+ /// Register a [`Preprocessor`] to be used when rendering the book.
230230 pub fn with_preprocessor < P : Preprocessor + ' static > ( & mut self , preprocessor : P ) -> & mut Self {
231231 self . preprocessors . push ( Box :: new ( preprocessor) ) ;
232232 self
@@ -303,7 +303,7 @@ impl MDBook {
303303 /// artefacts.
304304 ///
305305 /// If there is only 1 renderer, put it in the directory pointed to by the
306- /// `build.build_dir` key in `Config`. If there is more than one then the
306+ /// `build.build_dir` key in [ `Config`] . If there is more than one then the
307307 /// renderer gets its own directory within the main build dir.
308308 ///
309309 /// i.e. If there were only one renderer (in this case, the HTML renderer):
0 commit comments