web/build_site.rb in rubyvis-0.3.1 vs web/build_site.rb in rubyvis-0.3.2

- old
+ new

@@ -4,10 +4,11 @@ $:.unshift("../lib") require 'coderay' require 'haml' require 'ostruct' require 'rubyvis' +require 'RedCloth' # First, create the examples haml_template=Haml::Engine.new(File.read("examples.haml")) buffer=[] @@ -62,10 +63,10 @@ end text.map! {|t| t.chomp} # Create an html file with svg included inside page.source=CodeRay.scan(source_a.join(), :ruby).div page.title=title - page.text=text + page.text=RedCloth.new(text.join("\n")).to_html page.svg_file=base+".svg" # Read svg size width=350 height=200 if File.exists? "examples/#{page.svg_file}"