summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-18 12:28:24 -0700
committersersut <serdar@opscode.com>2013-10-18 12:28:24 -0700
commit929f5b3d90d9531f019ac191fd915bfb996d8b76 (patch)
tree0035a0ed96bbecfba803d37f75ca627b0de26145 /Rakefile
parent2a16fd8267e0547309ba5beb1a953f1a2a5f900b (diff)
downloadchef-929f5b3d90d9531f019ac191fd915bfb996d8b76.tar.gz
Remove auto-generation of man pages from markdown since it is being handled seperately.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile15
1 files changed, 2 insertions, 13 deletions
diff --git a/Rakefile b/Rakefile
index eb48b8e389..7e4d5bc14f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"