Sha256: 4db716a1bf762acda555b68e9578a2204604e80f23ac277d7b1711d909d8dcd0
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'find' namespace :build do desc 'Build README.md' task :readme do dir_path = File.dirname(__FILE__) Dir.chdir(dir_path) do # Run each example.rb and make its template. ruby_file_name = 'example.rb' template_file_name = 'template.md' readme_file_path = File.join( dir_path, '..', '..', 'README.md', ) readme_file_path = File.absolute_path(readme_file_path) Find.find('.') do |path| next unless File.directory?(path) Dir.chdir(path) do if File.exist?(ruby_file_name) && File.exist?(template_file_name) system("ruby #{ruby_file_name} > output.txt") system("markdown_helper include --pristine #{template_file_name} example.md") end end end # Make the main README page. system("markdown_helper include --pristine #{template_file_name} #{readme_file_path}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test_values-0.5.0 | markdown/readme/Rakefile |
test_values-0.4.0 | markdown/readme/Rakefile |