Skip to content

Instantly share code, notes, and snippets.

@janlelis
Forked from teeparham/rdoc2md.rb
Last active August 29, 2015 14:17
Show Gist options
  • Save janlelis/97fb3d28687fdc1e3e0d to your computer and use it in GitHub Desktop.
Save janlelis/97fb3d28687fdc1e3e0d to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rdoc'
puts RDoc::Markup::ToMarkdown.new.convert File.read(ARGV[0] || 'README.rdoc')
# ./rdoc2md > README.md
# ./rdoc2md ABC.rdoc > abc.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment