File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
src/renderer/html_handlebars Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -478,25 +478,6 @@ impl HtmlHandlebars {
478
478
}
479
479
}
480
480
481
- // TODO(mattico): Remove some time after the 0.1.8 release
482
- fn maybe_wrong_theme_dir ( dir : & Path ) -> Result < bool > {
483
- fn entry_is_maybe_book_file ( entry : fs:: DirEntry ) -> Result < bool > {
484
- Ok ( entry. file_type ( ) ?. is_file ( )
485
- && entry. path ( ) . extension ( ) . map_or ( false , |ext| ext == "md" ) )
486
- }
487
-
488
- if dir. is_dir ( ) {
489
- for entry in fs:: read_dir ( dir) ? {
490
- if entry_is_maybe_book_file ( entry?) . unwrap_or ( false ) {
491
- return Ok ( false ) ;
492
- }
493
- }
494
- Ok ( true )
495
- } else {
496
- Ok ( false )
497
- }
498
- }
499
-
500
481
impl Renderer for HtmlHandlebars {
501
482
fn name ( & self ) -> & str {
502
483
"html"
@@ -529,16 +510,6 @@ impl Renderer for HtmlHandlebars {
529
510
None => ctx. root . join ( "theme" ) ,
530
511
} ;
531
512
532
- if html_config. theme . is_none ( )
533
- && maybe_wrong_theme_dir ( & src_dir. join ( "theme" ) ) . unwrap_or ( false )
534
- {
535
- warn ! (
536
- "Previous versions of mdBook erroneously accepted `./src/theme` as an automatic \
537
- theme directory"
538
- ) ;
539
- warn ! ( "Please move your theme files to `./theme` for them to continue being used" ) ;
540
- }
541
-
542
513
let theme = theme:: Theme :: new ( theme_dir) ;
543
514
544
515
debug ! ( "Register the index handlebars template" ) ;
You can’t perform that action at this time.
0 commit comments