Skip to content
Myr

Add description for rake tasks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

You can see the descriptions by running `rake --tasks`.

authored by David Tolnay · committed by David Tolnay · parent 4887cfd · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/Rakefile+4 added
33 unmodified lines
34end3536Liquid::Template.register_filter(ExtraFilters)3738desc "Serve a live view of the website on http://localhost:5000/jq/"39task :serve do40 begin41 Bonsai.log "Press Control+C to quit"42
22 unmodified lines
65 exit66 end67end6869desc "Build the website from the bonsai sources"70task :build do71 Bonsai.root_dir = Dir.pwd72 Bonsai::Exporter.publish!73end
1 unmodified line
75def load_manual76 YAML::load(File.open("content/3.manual/manual.yml"))77end7879desc "Build the manpage from the bonsai source of the manual"80task :manpage do81 Tempfile.open "manpage" do |f|82 manual = load_manual83 f.puts manual['manpage_intro']
21 unmodified lines
105 puts Ronn::Document.new(f.path).convert('roff').gsub(/<\/?code>/,"")106 end107end108109desc "Collect jq unit test cases from the bonsai source of the manual"110task :mantests do111 load_manual['sections'].each do |section|112 (section['entries'] || []).each do |entry|113 (entry['examples'] || []).each do |example|
8 unmodified lines