lib/gollum-site/site.rb in gollum-site-0.1.1 vs lib/gollum-site/site.rb in gollum-site-0.1.2
- old
+ new
@@ -123,10 +123,12 @@
# Public: generate the static site
def generate()
::Dir.mkdir(@output_path) unless ::File.exists? @output_path
@pages.each do |name, page|
+ SiteLog.debug("Starting page generation - #{name}")
page.generate(@output_path, @version)
+ SiteLog.debug("Finished page generation - #{name}")
end
@files.each do |path, data|
path = ::File.join(@output_path, path)
::FileUtils.mkdir_p(::File.dirname(path))