File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ def out_filename(lang, extension)
15
15
end
16
16
17
17
namespace :build do
18
+ desc 'Build all versions'
19
+ task :all , [ :lang ] do |_task , args |
20
+ lang = parse_lang ( args )
21
+ Rake ::Task [ 'build:pdf' ] . invoke ( lang )
22
+ Rake ::Task [ 'build:epub' ] . invoke ( lang )
23
+ Rake ::Task [ 'build:mobi' ] . invoke ( lang )
24
+ end
25
+
18
26
desc 'Build a PDF version'
19
27
task :pdf , [ :lang ] do |_task , args |
20
28
lang = parse_lang ( args )
@@ -44,6 +52,7 @@ namespace :build do
44
52
lang = parse_lang ( args )
45
53
filename = out_filename lang , 'mobi'
46
54
`asciidoctor-epub3 #{ lang } /api_on_rails.adoc --destination-dir build -a ebook-format=kf8 --out-file #{ filename } `
47
- puts "Book compiled on build/api_on_rails-#{ lang } -kf8.epub"
55
+ `rm build/api_on_rails-#{ lang } -kf8.epub`
56
+ puts "Book compiled on build/api_on_rails-#{ lang } .mobi"
48
57
end
49
58
end
You can’t perform that action at this time.
0 commit comments