Skip to content

Commit

Permalink
Removed remaining Ruby 1.8 info. Some text/source tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 21, 2011
1 parent 8e02258 commit 9ab410d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 2 additions & 4 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ While Prince is too expensive (495USD for a single user license), the free versi

* Write PDF using Markdown, Textile or plain HTML
* Book layout support
* Syntax highlight theme based on Textmate
* Syntax highlight
* Generate a HTML, PDF and e-Pub files
* Table of Contents automatically generated from chapter titles

Expand Down Expand Up @@ -76,9 +76,7 @@ To print the TOC, you need to print a variable called +toc+, using the eRb tag.

=== Syntax Highlighting

We use Ultraviolet[http://rubygems.org/gems/ultraviolet] for syntax highlighting. If you're running Kitabu under Ruby 1.8, you'll need the Oniguruma[http://rubygems.org/gems/oniguruma] library. Ruby 1.9 already comes with Oniguruma as its regular expression engine.

To highlight a given code snippet, just do something like
We use Ultraviolet[http://rubygems.org/gems/ultraviolet] for syntax highlighting. To highlight a given code snippet, just do something like

@@@ ruby
class User < ActiveRecord::Base
Expand Down
1 change: 1 addition & 0 deletions kitabu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Gem::Specification.new do |s|
s.homepage = "http://rubygems.org/gems/kitabu"
s.summary = "A framework that generates PDF and e-Pub from Markdown, Textile, and HTML files."
s.description = s.summary
s.license = "MIT"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down
8 changes: 4 additions & 4 deletions lib/kitabu/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def self.source_root
end

def copy_template_files
copy_file "layout.erb", "templates/layout.erb"
copy_file "layout.css", "templates/layout.css"
copy_file "user.css", "templates/user.css"
copy_file "cover.erb", "templates/cover.erb"
copy_file "layout.erb" , "templates/layout.erb"
copy_file "layout.css" , "templates/layout.css"
copy_file "user.css" , "templates/user.css"
copy_file "cover.erb" , "templates/cover.erb"
create_file "templates/syntax.css" do
String.new.tap do |s|
Dir[File.dirname(__FILE__) + "/../../templates/styles/*.css"].each do |file|
Expand Down
6 changes: 3 additions & 3 deletions lib/kitabu/parser.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Kitabu
module Parser
autoload :Html, "kitabu/parser/html"
autoload :Pdf, "kitabu/parser/pdf"
autoload :Epub, "kitabu/parser/epub"
autoload :Html , "kitabu/parser/html"
autoload :Pdf , "kitabu/parser/pdf"
autoload :Epub , "kitabu/parser/epub"

class Base
# The e-book directory.
Expand Down

0 comments on commit 9ab410d

Please sign in to comment.