lib/md2man/rakefile.rb in md2man-1.6.2 vs lib/md2man/rakefile.rb in md2man-2.0.0

- old
+ new

@@ -28,12 +28,12 @@ task 'md2man:man' => mans #----------------------------------------------------------------------------- mkds.zip(mans).each do |src, dst| render_file_task.call src, dst, lambda {|input| - require 'md2man/engine' - Md2Man::ENGINE.render(input) + require 'md2man/roff/engine' + Md2Man::Roff::ENGINE.render(input) } end #----------------------------------------------------------------------------- desc 'Build HTML manual pages from Markdown files in man/.' @@ -93,11 +93,11 @@ mkds.zip(webs).each do |src, dst| render_file_task.call src, dst, lambda {|input| require 'md2man/html/engine' output = Md2Man::HTML::ENGINE.render(input). # deactivate external manual page cross-references - gsub(/(?<=<a class="manpage-reference") href="\.\.(.+?)"/) do + gsub(/(?<=<a class="md2man-xref") href="\.\.(.+?)"/) do $& if webs.include? 'man' + $1 end name = parse_manpage_name.call(dst) info = parse_manpage_info.call(output) @@ -114,12 +114,10 @@ dst.pathmap('%n'), '</span>', '</div>', '</div>', '<div class="container-fluid">', - '<div class="manpage">', - output, - '</div>', + output, '</div>', ].join wrap_html_template.call title, content, ascent }