Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update readme, add config.ru

  • Loading branch information...
commit 8826b80803d1cca332ee7a89acce123ca0b51951 1 parent e610ca0
@zzak zzak authored
Showing with 14 additions and 7 deletions.
  1. +7 −7 README.md
  2. +3 −0  app.rb
  3. +4 −0 config.ru
View
14 README.md
@@ -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
-----------------
View
3  app.rb
@@ -14,8 +14,11 @@
__END__
@@layout
+<!DOCTYPE html>
<html>
<head>
+ <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" />
View
4 config.ru
@@ -0,0 +1,4 @@
+require 'rubygems'
+require 'bundler/setup'
+require "#{File.dirname(__FILE__)}/app"
+run Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.