diff options
-rw-r--r-- | Rakefile | 15 | ||||
-rw-r--r-- | lib/chef/knife/help_topics.rb | 2 |
2 files changed, 3 insertions, 14 deletions
@@ -71,14 +71,11 @@ end RONN_OPTS = "--manual='Chef Manual' --organization='Chef #{Chef::VERSION}' --date='#{Time.new.strftime('%Y-%m-%d')}'" namespace :docs do - desc "Regenerate manpages from markdown" - task :man - desc "Regenerate HTML manual from markdown" task :html desc "Regenerate help topics from man pages" - task :list => :man do + task :list do topics = Array.new Dir['distro/common/man/man1/*.1'].each do |man| @@ -106,30 +103,22 @@ namespace :docs do Dir[dir].each do |mkd| basename = File.basename(mkd, '.mkd') if dir =~ /man1/ - manfile = "distro/common/man/man1/#{basename}.1" htmlfile = "distro/common/html/#{basename}.1.html" elsif dir =~ /man8/ - manfile = "distro/common/man/man8/#{basename}.8" htmlfile = "distro/common/html/#{basename}.8.html" end - file(manfile => [mkd, 'lib/chef/version.rb']) do - sh "ronn -r #{RONN_OPTS} #{mkd} --pipe > #{manfile}" - end - task :man => manfile - file(htmlfile => [mkd, 'lib/chef/version.rb']) do sh "ronn -5 #{RONN_OPTS} --style=toc #{mkd} --pipe > #{htmlfile}" end task :html => htmlfile - end end else puts "get with the program and install ronn" end - task :all => [:man, :html] + task :all => [:list, :html] end task :docs => "docs:all" diff --git a/lib/chef/knife/help_topics.rb b/lib/chef/knife/help_topics.rb index 8427204fd6..ca13381bbf 100644 --- a/lib/chef/knife/help_topics.rb +++ b/lib/chef/knife/help_topics.rb @@ -1,4 +1,4 @@ # Do not edit this file by hand # This file is autogenerated by the docs:list rake task from the available manpages -HELP_TOPICS = ["chef-shell", "knife-bootstrap", "knife-client", "knife-configure", "knife-cookbook-site", "knife-cookbook", "knife-data-bag", "knife-environment", "knife-exec", "knife-index", "knife-node", "knife-role", "knife-search", "knife-ssh", "knife-status", "knife-tag", "knife", "shef"] +HELP_TOPICS = ["chef-shell", "knife-bootstrap", "knife-client", "knife-configure", "knife-cookbook-site", "knife-cookbook", "knife-data-bag", "knife-delete", "knife-deps", "knife-diff", "knife-download", "knife-edit", "knife-environment", "knife-exec", "knife-index-rebuild", "knife-index", "knife-list", "knife-node", "knife-raw", "knife-recipe-list", "knife-role", "knife-search", "knife-show", "knife-ssh", "knife-status", "knife-tag", "knife-upload", "knife-user", "knife-xargs", "knife"] |