lib/softcover/commands/generator.rb in softcover-1.1.7 vs lib/softcover/commands/generator.rb in softcover-1.1.8

- old
+ new

@@ -43,10 +43,12 @@ cp_path = "#{name}.tex" elsif path =~ /\.erb/ cp_path = File.join(File.dirname(cp_path), File.basename(path.dup, '.erb')) elsif path =~ /gitignore/ + next if markdown? && path =~ /latex_gitignore/ + next if !markdown? && path =~ /markdown_gitignore/ cp_path = '.gitignore' end display_path = File.join name, cp_path @@ -81,19 +83,19 @@ Dir.chdir "../.." book_yml = File.join(Softcover::Directories::CONFIG, 'book.yml') puts "Done. Please update #{book_yml}" end - + # Returns a list of all the files and directories used to build the book. def all_files_and_directories files_directories_maybe_markdown end # Returns the files and directories based on the input format. def files_directories_maybe_markdown fds = Dir.glob( - File.join(Softcover::Utils.template_dir(article: @article), + File.join(Softcover::Utils.template_dir(article: @article), "**/*"), File::FNM_DOTMATCH) if markdown? # Skip the PolyTeX chapter files, which will be generated later. fds.reject { |e| e =~ /\/chapters\/.*\.tex/ } else