Skip to content

Commit

Permalink
update readme, add config.ru
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Sep 8, 2012
1 parent e610ca0 commit 8826b80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -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
-----------------
Expand Down
3 changes: 3 additions & 0 deletions app.rb
Expand Up @@ -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" />
Expand Down
4 changes: 4 additions & 0 deletions config.ru
@@ -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.