Browse files

update readme, add

  • Loading branch information...
zzak committed Sep 8, 2012
1 parent e610ca0 commit 8826b80803d1cca332ee7a89acce123ca0b51951
Showing with 14 additions and 7 deletions.
  1. +7 −7
  2. +3 −0 app.rb
  3. +4 −0
@@ -11,17 +11,17 @@ Before you can translate the book into various formats you need to install the d
gem install bundler
bundle install
-In the root directory, launch the following Thor task:
+In the root directory, launch the following Rake task:
- thor book:build
+ bundle exec rake book:build
-This will install an HTML version of the book in the output folder
+This will build a PDF version of the book in the output folder
-To build a LaTeX or PDF version you have to use this task:
+You can run the built-in book sinatra app to view it in your browser too:
- thor book:build latex
- # or
- thor book:build pdf
+ rackup
+Then visit: http://localhost:9292/
How to contribute
3 app.rb
@@ -14,8 +14,11 @@
+<!DOCTYPE html>
+ <meta charset='utf-8'>
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Sinatra Book</title>
<link rel="stylesheet" type="text/css" href="/book.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="/print.css" media="print" />
@@ -0,0 +1,4 @@
+require 'rubygems'
+require 'bundler/setup'
+require "#{File.dirname(__FILE__)}/app"
+run Sinatra::Application

0 comments on commit 8826b80

Please sign in to comment.