lib/docface/base.rb in docface-0.0.3 vs lib/docface/base.rb in docface-0.0.4

- old
+ new

@@ -28,11 +28,14 @@ end def cli @cli = Cli.opts @directory = @cli[:dir] - @title = @cli[:title] || "DocFace" + @page_attributes = { + :title => @cli[:title] || "DocFace", + :summary => @cli[:summary] || "" + } @output_dir = @cli[:output] ? @cli[:output] : "#{Dir.pwd}/docface" end def parse(files,directory) files.each do |file| @@ -43,10 +46,10 @@ build(file,content) end end def build(file,content) - file = File.join(@output_dir,file).gsub(/\.md/,".html") + file = File.join(@output_dir,file).gsub(/\.md|.MD|.markdown|.mdown/,".html") directory = File.dirname(file) @writer.write(directory,file,content) end def assets