summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 46dd4bd..46842bf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -23,6 +23,19 @@ rescue LoadError => e
warn "#{e.path} is not available"
end
+task :readme2md do
+ require 'asciidoctor'
+ require 'pandoc-ruby'
+
+ docbook = Asciidoctor
+ .load_file('README.adoc', header_footer: true, backend: 'docbook')
+ .convert
+ markdown = PandocRuby
+ .convert(docbook, from: :docbook, to: :markdown_github)
+
+ File.write('README.md', markdown)
+end
+
namespace :build do
desc 'Transcompile to JavaScript using Opal'
task :js do