summaryrefslogtreecommitdiffstats
path: root/docs/Rakefile
diff options
context:
space:
mode:
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