Created
December 18, 2014 10:33
-
-
Save netbe/3f65c537775007c3e1a6 to your computer and use it in GitHub Desktop.
generate man pages ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :man do | |
mkdir_p "build" | |
File.write "README.md.ron", File.read("README.md").gsub("\u200c", "* ") | |
sh 'ronn --roff --manual="Gist manual" README.md.ron' | |
rm 'README.md.ron' | |
mv 'README.1', 'build/gist.1' | |
end | |
# https://github.com/defunkt/gist/blob/master/Rakefile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment