Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit e271ef7

Browse files
committed
Render to build directory.
1 parent b7fb74d commit e271ef7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,23 +260,24 @@ class WhiteCloth < RedCloth
260260

261261
end
262262

263-
OUTPUT = File.dirname(__FILE__) + "/output"
263+
OUTPUT = File.dirname(__FILE__) + "/build"
264264
INPUT = File.dirname(__FILE__) + "/text"
265265

266266
desc "Generate document as HTML"
267-
task :preview do
267+
task :build do
268268
FileUtils.mkdir(OUTPUT) unless File.exists?(OUTPUT)
269269
Dir["#{INPUT}/*.textile"].each do |f|
270270
basename = File.basename(f).gsub!(/.textile$/, ".html")
271271
File.open(File.join(OUTPUT, basename), "w") do |tempfile|
272272
tempfile.puts WhiteCloth.new(File.read(f), File.dirname(__FILE__)).to_html
273273
end
274274
end
275+
$stdout.puts "Rendered HTML to ./build"
275276
end
276277

277278
desc "Cleanup 'output' directory"
278279
task :clean do
279280
FileUtils.rm_rf(OUTPUT)
280281
end
281282

282-
task :default => :preview
283+
task :default => :build

0 commit comments

Comments
 (0)