lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.39 vs lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.40

- old
+ new

@@ -134,10 +134,10 @@ end end def self.copy_doc(source, dest) contents = File.open(source).read - contents.sub!(/^# (.*)$/, "#{title('\1').strip}") + contents.sub!(/^# (.*)$/, "#{doc_title('\1').strip}") FileUtils.mkdir_p File.dirname(dest) File.open(dest, 'w') {|f| f.write(contents) } puts "Updated #{dest} from #{source}" end