File tree 3 files changed +30
-30
lines changed
lib/doc_site_builder/docsitebuilder/tasks
3 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
1
require "bundler/gem_tasks"
2
- require "#{ File . join ( Dir . pwd , '_builder_lib/docsitebuilder/helpers' ) } "
3
- require 'rake'
4
-
5
- include DocSiteBuilder ::Helpers
6
-
7
- task :build , :build_distro do |task , args |
8
- # Figure out which distros we are building.
9
- # A blank value here == all distros
10
- build_distro = args [ :build_distro ] || ''
11
- generate_docs ( build_distro )
12
- end
13
-
14
- task :package , :package_site do |task , args |
15
- package_site = args [ :package_site ] || ''
16
- Rake ::Task [ "clean" ] . invoke
17
- Rake ::Task [ "build" ] . invoke
18
- package_docs ( package_site )
19
- end
20
-
21
- task :refresh_page , :single_page do |task , args |
22
- generate_docs ( '' , args [ :single_page ] )
23
- end
24
-
25
- task :clean do
26
- sh "rm -rf _preview/* _package/*" do |ok , res |
27
- if ! ok
28
- puts "Nothing to clean."
29
- end
30
- end
31
- end
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ require "#{ File . join ( Dir . pwd , '_builder_lib/docsitebuilder/helpers' ) } "
2
+ require 'rake'
3
+
4
+ include DocSiteBuilder ::Helpers
5
+
6
+ task :build , :build_distro do |task , args |
7
+ # Figure out which distros we are building.
8
+ # A blank value here == all distros
9
+ build_distro = args [ :build_distro ] || ''
10
+ generate_docs ( build_distro )
11
+ end
12
+
13
+ task :package , :package_site do |task , args |
14
+ package_site = args [ :package_site ] || ''
15
+ Rake ::Task [ "clean" ] . invoke
16
+ Rake ::Task [ "build" ] . invoke
17
+ package_docs ( package_site )
18
+ end
19
+
20
+ task :refresh_page , :single_page do |task , args |
21
+ generate_docs ( '' , args [ :single_page ] )
22
+ end
23
+
24
+ task :clean do
25
+ sh "rm -rf _preview/* _package/*" do |ok , res |
26
+ if ! ok
27
+ puts "Nothing to clean."
28
+ end
29
+ end
30
+ end
You can’t perform that action at this time.
0 commit comments