File tree Expand file tree Collapse file tree 4 files changed +1
-43
lines changed
crates/mdbook-html/src/html_handlebars Expand file tree Collapse file tree 4 files changed +1
-43
lines changed Original file line number Diff line number Diff line change @@ -271,8 +271,6 @@ impl HtmlHandlebars {
271
271
no_section_label : html_config. no_section_label ,
272
272
} ) ,
273
273
) ;
274
- // TODO: remove theme_option in 0.5, it is not needed.
275
- handlebars. register_helper ( "theme_option" , Box :: new ( helpers:: theme:: theme_option) ) ;
276
274
}
277
275
278
276
fn emit_redirects (
@@ -558,7 +556,6 @@ fn make_data(
558
556
) ;
559
557
}
560
558
561
- // TODO: remove default_theme in 0.5, it is not needed.
562
559
let default_theme = match html_config. default_theme {
563
560
Some ( ref theme) => theme. to_lowercase ( ) ,
564
561
None => "light" . to_string ( ) ,
Original file line number Diff line number Diff line change 1
1
pub ( crate ) mod resources;
2
- pub ( crate ) mod theme;
3
2
pub ( crate ) mod toc;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl HelperDef for ResourceHelper {
23
23
) -> Result < ( ) , RenderError > {
24
24
let param = h. param ( 0 ) . and_then ( |v| v. value ( ) . as_str ( ) ) . ok_or_else ( || {
25
25
RenderErrorReason :: Other (
26
- "Param 0 with String type is required for theme_option helper." . to_owned ( ) ,
26
+ "Param 0 with String type is required for resource helper." . to_owned ( ) ,
27
27
)
28
28
} ) ?;
29
29
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments