#!/usr/bin/env ruby require 'fileutils' unless(system("yardoc")) $stderr.puts 'ACK: Failed to create docs!' exit -1 end FileUtils.mkdir_p('doc/UserDocs') Dir.glob('docs/**/*').each do |path| next unless File.file?(path) content = File.read(path) new_path = File.join('doc/UserDocs', path.sub(/.*?docs\//, '')) FileUtils.mkdir_p(File.dirname(new_path)) File.open(new_path.sub('.md', '.html'), 'w') do |file| if(path.end_with?('.md')) file.puts '