diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-10-12 10:21:16 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-10-12 10:21:18 -0700 |
commit | 9d6e91ea7b5c7c1be8a9e167190ac02c46a294ce (patch) | |
tree | 6f15807b8568dd61c48caf27fe6cb454a8a5632e /docs | |
parent | 4887cfd9515efc19b2245bb831a9282898ce8699 (diff) |
Add description for rake tasks
You can see the descriptions by running `rake --tasks`.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/Rakefile b/docs/Rakefile index cc6c99dd..c31d5976 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -35,6 +35,7 @@ end Liquid::Template.register_filter(ExtraFilters) +desc "Serve a live view of the website on http://localhost:5000/jq/" task :serve do begin Bonsai.log "Press Control+C to quit" @@ -65,6 +66,7 @@ task :serve do end end +desc "Build the website from the bonsai sources" task :build do Bonsai.root_dir = Dir.pwd Bonsai::Exporter.publish! @@ -74,6 +76,7 @@ def load_manual YAML::load(File.open("content/3.manual/manual.yml")) end +desc "Build the manpage from the bonsai source of the manual" task :manpage do Tempfile.open "manpage" do |f| manual = load_manual @@ -103,6 +106,7 @@ task :manpage do end end +desc "Collect jq unit test cases from the bonsai source of the manual" task :mantests do load_manual['sections'].each do |section| (section['entries'] || []).each do |entry| |