forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (25 loc) · 718 Bytes
/
Rakefile
File metadata and controls
30 lines (25 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require "#{File.join(Dir.pwd,'_builder_lib/docsitebuilder/helpers')}"
require 'rake'
include DocSiteBuilder::Helpers
task :build, :build_distro do |task,args|
# Figure out which distros we are building.
# A blank value here == all distros
build_distro = args[:build_distro] || ''
generate_docs(build_distro)
end
task :package, :package_site do |task,args|
package_site = args[:package_site] || ''
Rake::Task["clean"].invoke
Rake::Task["build"].invoke
package_docs(package_site)
end
task :refresh_page, :single_page do |task,args|
generate_docs('',args[:single_page])
end
task :clean do
sh "rm -rf _preview/* _package/*" do |ok,res|
if ! ok
puts "Nothing to clean."
end
end
end