summaryrefslogtreecommitdiffstats
path: root/docs/Rakefile
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-16 17:11:40 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-16 17:11:40 +0000
commitb0aa62f2b77b2b97fca3e75030156455381d0df3 (patch)
treea35fd8f956d66df756e82f93a48e54fd7cdc339e /docs/Rakefile
parent3ae8fb7371085f7507de6324c391c9953fc638e3 (diff)
Improve manpage introduction, add examples to manpage.
Closes #19
Diffstat (limited to 'docs/Rakefile')
-rw-r--r--docs/Rakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/Rakefile b/docs/Rakefile
index da2d4cf4..375ce408 100644
--- a/docs/Rakefile
+++ b/docs/Rakefile
@@ -81,6 +81,12 @@ task :manpage do
f.puts "### #{entry['title']}\n"
f.puts entry['body']
f.puts ""
+ (entry['examples'] || []).each do |example|
+ f.puts " jq '#{example['program']}'"
+ f.puts " #{example['input']}"
+ f.puts " => #{example['output'].join(", ")}"
+ f.puts
+ end
end
f.puts ""
end