Sha256: a09fa998f96748f1d7c352449e221b301358a2b08674ac409b32ad0fe8fb8267

Contents?: true

Size: 445 Bytes

Versions: 15

Compression:

Stored size: 445 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => [:spec, :proof_readme]

task :proof_readme do
  require 'html/proofer'
  require 'redcarpet'

  redcarpet = Redcarpet::Markdown.new Redcarpet::Render::HTML.new({}), {}
  html = redcarpet.render File.read('README.md')

  mkdir_p 'out'
  File.write('out/README.html', html)

  HTML::Proofer.new('./out').run
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
html-proofer-2.5.1 Rakefile
html-proofer-2.5.0 Rakefile
html-proofer-2.4.2 Rakefile
html-proofer-2.4.1 Rakefile
html-proofer-2.4.0 Rakefile
html-proofer-2.3.0 Rakefile
html-proofer-2.2.0 Rakefile
html-proofer-2.1.0 Rakefile
html-proofer-2.0.6 Rakefile
html-proofer-2.0.5 Rakefile
html-proofer-2.0.4 Rakefile
html-proofer-2.0.3 Rakefile
html-proofer-2.0.2 Rakefile
html-proofer-2.0.1 Rakefile
html-proofer-2.0.0 Rakefile