bookshop 0.0.22 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. data/README.rdoc +35 -69
  2. data/lib/bookshop/commands/build.rb +3 -13
  3. data/lib/bookshop/generators/bookshop/app/templates/README.rdoc +35 -69
  4. data/lib/bookshop/generators/bookshop/app/templates/book/assets/css/stylesheet.epub.css +7 -7
  5. data/lib/bookshop/generators/bookshop/app/templates/book/assets/css/stylesheet.html.css +8 -8
  6. data/lib/bookshop/generators/bookshop/app/templates/book/assets/css/stylesheet.mobi.css +7 -7
  7. data/lib/bookshop/generators/bookshop/app/templates/book/assets/css/stylesheet.pdf.css +9 -9
  8. data/lib/bookshop/generators/bookshop/app/templates/book/backmatter/index.html.erb +15 -0
  9. data/lib/bookshop/generators/bookshop/app/templates/book/{ch01 → bodymatter/ch01}/adding_images.html.erb +1 -1
  10. data/lib/bookshop/generators/bookshop/app/templates/book/{ch01 → bodymatter/ch01}/ch01.html.erb +3 -3
  11. data/lib/bookshop/generators/bookshop/app/templates/book/{ch01 → bodymatter/ch01}/dev_of_the_web.html.erb +0 -0
  12. data/lib/bookshop/generators/bookshop/app/templates/book/{ch01 → bodymatter/ch01}/the_web.html.erb +0 -0
  13. data/lib/bookshop/generators/bookshop/app/templates/book/{ch02 → bodymatter/ch02}/ch02.html.erb +1 -17
  14. data/lib/bookshop/generators/bookshop/app/templates/book/{ch02 → bodymatter/ch02}/rules_and_css.html.erb +0 -0
  15. data/lib/bookshop/generators/bookshop/app/templates/book/book.html.erb +10 -21
  16. data/lib/bookshop/generators/bookshop/app/templates/book/frontmatter/cover.html.erb +7 -0
  17. data/lib/bookshop/generators/bookshop/app/templates/book/{preface.html.erb → frontmatter/preface.html.erb} +2 -2
  18. data/lib/bookshop/generators/bookshop/app/templates/book/{cover.html.erb → frontmatter/title.html.erb} +1 -10
  19. data/lib/bookshop/generators/bookshop/app/templates/book/frontmatter/toc.html.erb +25 -0
  20. data/lib/bookshop/generators/bookshop/app/templates/script/bookshop +1 -0
  21. data/lib/bookshop/post_install.rb +4 -12
  22. data/lib/bookshop/version.rb +1 -1
  23. metadata +95 -141
  24. data/lib/bookshop/generators/bookshop/app/templates/book/toc.html.erb +0 -19
  25. data/lib/bookshop/generators/bookshop/app/templates/config/toc.yml +0 -7
data/README.rdoc CHANGED
@@ -7,7 +7,7 @@ bookshop is a book publishing framework for building pdf/(e)books based on HTML,
7
7
  bookshop hopes to simplify the process by:
8
8
  * using common tools like HTML/CSS to make the creation of your book comfortable and familiar, greatly reducing the learning curve for your developers, authors, agents, and other team members
9
9
  * providing a Ruby Gem to make building a book in HTML as easy as 'gem install bookshop'
10
- * pulling all the html-to-pdf/(e)book tools together into one place (wkhtmltopdf, kindlegen, epubcheck)
10
+ * pulling all the html-to-pdf/(e)book tools together into one place (princexml, kindlegen, epubcheck)
11
11
  * sticking with open-source tools to encourage community development
12
12
  * giving the developer a set of scripts to automate the redundant stuff
13
13
  * providing an architecture/structure that follows best-practices and simplification (DRY... Don't Repeat Yourself)
@@ -24,19 +24,11 @@ bookshop hopes to simplify the process by:
24
24
 
25
25
  $ gem install bookshop
26
26
 
27
- === Install wkhtmltopdf
27
+ === Install PrinceXML
28
28
 
29
- 1. Try using the wkhtmltopdf-binary gem (mac + linux i386)
29
+ 1. Go to PrinceXML website and follow the install instructions
30
30
 
31
- $ gem install wkhtmltopdf-binary
32
-
33
- 2. Install by hand (for windows or users who want to install newer builds):
34
-
35
- https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
36
-
37
- 3. The wkhtmltopdf site has more info
38
-
39
- http://code.google.com/p/wkhtmltopdf/
31
+ http://www.princexml.com/download/
40
32
 
41
33
  == Using bookshop
42
34
 
@@ -46,20 +38,25 @@ https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
46
38
 
47
39
  This will create a new bookshop book in /path/to/my_new_book with the following structure:
48
40
 
49
- |-- book/ # Source files for your book
50
- |--book.html.erb # The master file
51
- |--css/
52
- |--stylesheet.css
53
- |--images/
41
+ |-- book/ # Source files for your book
42
+ |--book.html.erb # The master file
43
+ |--frontmatter/ # Content at the front of the book (cover, title, preface, etc.)
44
+ |--bodymatter/ # Main content of book (chapters, sections, etc.)
45
+ |--backmatter/ # Content at the back of the book (appendix, index, etc.)
46
+ |--assets/
47
+ |--css/
48
+ |--stylesheet.css
49
+ |--images/
50
+ |--js/
54
51
 
55
- |-- builds/ # All the builds are created here
56
- |--epub/
57
- |--html/
58
- |--mobi/
59
- |--pdf/
52
+ |-- builds/ # All the builds are created here
53
+ |--epub/
54
+ |--html/
55
+ |--mobi/
56
+ |--pdf/
60
57
 
61
- |-- config/ # Your config and data settings
62
- |--book.yml # Settings/Data for your book
58
+ |-- config/ # Your config and data settings
59
+ |--book.yml # Settings/Data for your book
63
60
 
64
61
 
65
62
  === Editing Your New Book
@@ -88,24 +85,24 @@ You can import a file by using the import() function, for example:
88
85
 
89
86
  <%= import('a_whole_chapter.html.erb') %>
90
87
 
91
- This would import the file +book/a_whole_chapter.html+
88
+ This would import the file +book/a_whole_chapter.html.erb+
92
89
 
93
90
  You can also create sub-folders and group your files there. For example, in your book.html.erb file you could import:
94
91
 
95
- <%= import('ch1/my_first_section.html.erb') %>
92
+ <%= import('bodymatter/ch01/my_first_section.html.erb') %>
96
93
 
97
- This would import the file +book/ch1/my_first_section.html.erb+
94
+ This would import the file +book/bodymatter/ch01/my_first_section.html.erb+
98
95
 
99
96
  Note that you can also nest import files into imported files.
100
97
 
101
98
  So in your +book/book.html.erb+
102
99
 
103
- <%= import('ch01/ch01.html.erb') %>
100
+ <%= import('bodymatter/ch01/ch01.html.erb') %>
104
101
 
105
- and in the +ch01/ch01.html.erb+ you could import more files
102
+ and in the +bodymatter/ch01/ch01.html.erb+ you could import more files
106
103
 
107
- <%= import('first_section.html.erb') %>
108
- <%= import('second_section.html.erb') %>
104
+ <%= import('bodymatter/ch01/first_section.html.erb') %>
105
+ <%= import('bodymatter/ch01/second_section.html.erb') %>
109
106
 
110
107
  ==== Output-based Content
111
108
 
@@ -202,43 +199,9 @@ To build a pdf format of your book from the ERB source:
202
199
 
203
200
  ==== Editing your pdf document options
204
201
 
205
- What if you want your pdf to print as Lanscape, or a different page-size, or in grayscale? Because bookshop uses PDFKit, you can pass wkhtmltopdf (the pdf rendering engine) options by way of <meta> tags in your html source code.
206
-
207
- For example, to print in Landscape mode, in your master +book/book.html.erb+ file we can add <meta name="pdfkit-orientation" content="Landscape" />:
208
-
209
- so you html would be:
210
-
211
- <html>
212
- <head>
213
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
214
- <meta name="pdfkit-orientation" content="Landscape" />
215
- <title>how-to bookshop</title>
216
- <link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
217
- </head>
218
- <body>
219
- <p>The ISBN is <%= @book.isbn %></p>
220
-
221
- Here's a list of other options https://github.com/blueheadpublishing/bookshop/wiki/wkhtmltopdf-options
222
-
223
- Or you can look at all of the possible wkhtmltopdf options by using the command:
224
-
225
- $ wkhtmltopdf --extended-help
226
-
227
- Your meta tags should use the following naming conventions.
228
-
229
- * For each option, replace the double-dashes '--' before the option with +pdfkit-+ and change single-dashes '-' to an underscore +_+.
230
- --page-size
231
-
232
- becomes
233
-
234
- <meta name="pdfkit-page_size" content="Letter" />
235
-
236
- * For options that do not require an additional parameter/value, you still need to include the content attribute, but keep it blank.
237
- --grayscale
238
-
239
- becomes
202
+ We recommend consulting PrinceXML's documentation concerning PDF options.
240
203
 
241
- <meta name="pdfkit-grayscale" content="" />
204
+ http://www.princexml.com/doc/8.0/
242
205
 
243
206
  == Example Book
244
207
 
@@ -258,10 +221,14 @@ The default directory structure of a generated bookshop project:
258
221
 
259
222
  |-- book/ # Source files for your book
260
223
  |--book.html.erb # The master file
224
+ |--frontmatter/ # Content at the front of the book (cover, title, preface, etc.)
225
+ |--bodymatter/ # Main content of book (chapters, sections, etc.)
226
+ |--backmatter/ # Content at the back of the book (appendix, index, etc.)
261
227
  |--assets/
262
228
  |--css/
263
229
  |--stylesheet.css
264
230
  |--images/
231
+ |--js/
265
232
 
266
233
  |-- builds/ # All the builds are created here
267
234
  |--epub/
@@ -301,7 +268,7 @@ config
301
268
 
302
269
  == Copyright (MIT-LICENSE)
303
270
 
304
- Copyright (C) 2010, 2011 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
271
+ Copyright (C) 2011, 2012 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
305
272
 
306
273
  Permission is hereby granted, free of charge, to any person obtaining a copy
307
274
  of this software and associated documentation files (the "Software"), to deal
@@ -336,7 +303,6 @@ We would like to thank:
336
303
  * The Ruby/Rubygems Team www.ruby-lang.org/
337
304
  * The Thor Team - https://github.com/wycats/thor
338
305
  * Hakon Wium Lie and Bert Bos for developing the book microformat http://www.alistapart.com/articles/boom
339
- * The WKHTMLTOPDF team http://code.google.com/p/wkhtmltopdf/
340
306
 
341
307
  A List of Our Contributors:
342
308
  https://github.com/blueheadpublishing/bookshop/blob/master/CONTRIBUTORS.md
@@ -2,7 +2,6 @@ require 'thor/group'
2
2
  require 'erb'
3
3
  require 'fileutils'
4
4
  require 'yaml'
5
- require 'PDFKit'
6
5
 
7
6
  require 'bookshop/commands/yaml/book'
8
7
  # require 'bookshop/commands/epub/epub_build'
@@ -97,18 +96,9 @@ module Bookshop
97
96
  FileUtils.cp_r('book/assets/', 'builds/html/', :verbose => true)
98
97
 
99
98
 
100
- # PDFKit.new takes the HTML and any options for wkhtmltopdf
101
- # run `wkhtmltopdf --extended-help` for a full list of options
102
- kit = PDFKit.new(File.new('builds/html/book.html'))
103
-
104
- # Git an inline PDF
105
- pdf = kit.to_pdf
106
-
107
- # Save the PDF to a file
108
- file = kit.to_file('builds/pdf/book.pdf')
109
-
110
- # when 'epub'
111
- # Bookshop::Commands::EpubBuild.new
99
+ # Builds the pdf from builds/html/book.html
100
+ puts "Building new pdf at builds/pdf/book.pdf from new html build"
101
+ cmd = %x[prince builds/html/book.html -o builds/pdf/book.pdf]
112
102
 
113
103
  else
114
104
  puts "Error: Command not recognized" unless %w(-h --help).include?(build)
@@ -7,7 +7,7 @@ bookshop is a book publishing framework for building pdf/(e)books based on HTML,
7
7
  bookshop hopes to simplify the process by:
8
8
  * using common tools like HTML/CSS to make the creation of your book comfortable and familiar, greatly reducing the learning curve for your developers, authors, agents, and other team members
9
9
  * providing a Ruby Gem to make building a book in HTML as easy as 'gem install bookshop'
10
- * pulling all the html-to-pdf/(e)book tools together into one place (wkhtmltopdf, kindlegen, epubcheck)
10
+ * pulling all the html-to-pdf/(e)book tools together into one place (princexml, kindlegen, epubcheck)
11
11
  * sticking with open-source tools to encourage community development
12
12
  * giving the developer a set of scripts to automate the redundant stuff
13
13
  * providing an architecture/structure that follows best-practices and simplification (DRY... Don't Repeat Yourself)
@@ -24,19 +24,11 @@ bookshop hopes to simplify the process by:
24
24
 
25
25
  $ gem install bookshop
26
26
 
27
- === Install wkhtmltopdf
27
+ === Install PrinceXML
28
28
 
29
- 1. Try using the wkhtmltopdf-binary gem (mac + linux i386)
29
+ 1. Go to PrinceXML website and follow the install instructions
30
30
 
31
- $ gem install wkhtmltopdf-binary
32
-
33
- 2. Install by hand (for windows or users who want to install newer builds):
34
-
35
- https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
36
-
37
- 3. The wkhtmltopdf site has more info
38
-
39
- http://code.google.com/p/wkhtmltopdf/
31
+ http://www.princexml.com/download/
40
32
 
41
33
  == Using bookshop
42
34
 
@@ -46,20 +38,25 @@ https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
46
38
 
47
39
  This will create a new bookshop book in /path/to/my_new_book with the following structure:
48
40
 
49
- |-- book/ # Source files for your book
50
- |--book.html.erb # The master file
51
- |--css/
52
- |--stylesheet.css
53
- |--images/
41
+ |-- book/ # Source files for your book
42
+ |--book.html.erb # The master file
43
+ |--frontmatter/ # Content at the front of the book (cover, title, preface, etc.)
44
+ |--bodymatter/ # Main content of book (chapters, sections, etc.)
45
+ |--backmatter/ # Content at the back of the book (appendix, index, etc.)
46
+ |--assets/
47
+ |--css/
48
+ |--stylesheet.css
49
+ |--images/
50
+ |--js/
54
51
 
55
- |-- builds/ # All the builds are created here
56
- |--epub/
57
- |--html/
58
- |--mobi/
59
- |--pdf/
52
+ |-- builds/ # All the builds are created here
53
+ |--epub/
54
+ |--html/
55
+ |--mobi/
56
+ |--pdf/
60
57
 
61
- |-- config/ # Your config and data settings
62
- |--book.yml # Settings/Data for your book
58
+ |-- config/ # Your config and data settings
59
+ |--book.yml # Settings/Data for your book
63
60
 
64
61
 
65
62
  === Editing Your New Book
@@ -88,24 +85,24 @@ You can import a file by using the import() function, for example:
88
85
 
89
86
  <%= import('a_whole_chapter.html.erb') %>
90
87
 
91
- This would import the file +book/a_whole_chapter.html+
88
+ This would import the file +book/a_whole_chapter.html.erb+
92
89
 
93
90
  You can also create sub-folders and group your files there. For example, in your book.html.erb file you could import:
94
91
 
95
- <%= import('ch1/my_first_section.html.erb') %>
92
+ <%= import('bodymatter/ch01/my_first_section.html.erb') %>
96
93
 
97
- This would import the file +book/ch1/my_first_section.html.erb+
94
+ This would import the file +book/bodymatter/ch01/my_first_section.html.erb+
98
95
 
99
96
  Note that you can also nest import files into imported files.
100
97
 
101
98
  So in your +book/book.html.erb+
102
99
 
103
- <%= import('ch01/ch01.html.erb') %>
100
+ <%= import('bodymatter/ch01/ch01.html.erb') %>
104
101
 
105
- and in the +ch01/ch01.html.erb+ you could import more files
102
+ and in the +bodymatter/ch01/ch01.html.erb+ you could import more files
106
103
 
107
- <%= import('first_section.html.erb') %>
108
- <%= import('second_section.html.erb') %>
104
+ <%= import('bodymatter/ch01/first_section.html.erb') %>
105
+ <%= import('bodymatter/ch01/second_section.html.erb') %>
109
106
 
110
107
  ==== Output-based Content
111
108
 
@@ -202,43 +199,9 @@ To build a pdf format of your book from the ERB source:
202
199
 
203
200
  ==== Editing your pdf document options
204
201
 
205
- What if you want your pdf to print as Lanscape, or a different page-size, or in grayscale? Because bookshop uses PDFKit, you can pass wkhtmltopdf (the pdf rendering engine) options by way of <meta> tags in your html source code.
206
-
207
- For example, to print in Landscape mode, in your master +book/book.html.erb+ file we can add <meta name="pdfkit-orientation" content="Landscape" />:
208
-
209
- so you html would be:
210
-
211
- <html>
212
- <head>
213
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
214
- <meta name="pdfkit-orientation" content="Landscape" />
215
- <title>how-to bookshop</title>
216
- <link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
217
- </head>
218
- <body>
219
- <p>The ISBN is <%= @book.isbn %></p>
220
-
221
- Here's a list of other options https://github.com/blueheadpublishing/bookshop/wiki/wkhtmltopdf-options
222
-
223
- Or you can look at all of the possible wkhtmltopdf options by using the command:
224
-
225
- $ wkhtmltopdf --extended-help
226
-
227
- Your meta tags should use the following naming conventions.
228
-
229
- * For each option, replace the double-dashes '--' before the option with +pdfkit-+ and change single-dashes '-' to an underscore +_+.
230
- --page-size
231
-
232
- becomes
233
-
234
- <meta name="pdfkit-page_size" content="Letter" />
235
-
236
- * For options that do not require an additional parameter/value, you still need to include the content attribute, but keep it blank.
237
- --grayscale
238
-
239
- becomes
202
+ We recommend consulting PrinceXML's documentation concerning PDF options.
240
203
 
241
- <meta name="pdfkit-grayscale" content="" />
204
+ http://www.princexml.com/doc/8.0/
242
205
 
243
206
  == Example Book
244
207
 
@@ -258,10 +221,14 @@ The default directory structure of a generated bookshop project:
258
221
 
259
222
  |-- book/ # Source files for your book
260
223
  |--book.html.erb # The master file
224
+ |--frontmatter/ # Content at the front of the book (cover, title, preface, etc.)
225
+ |--bodymatter/ # Main content of book (chapters, sections, etc.)
226
+ |--backmatter/ # Content at the back of the book (appendix, index, etc.)
261
227
  |--assets/
262
228
  |--css/
263
229
  |--stylesheet.css
264
230
  |--images/
231
+ |--js/
265
232
 
266
233
  |-- builds/ # All the builds are created here
267
234
  |--epub/
@@ -301,7 +268,7 @@ config
301
268
 
302
269
  == Copyright (MIT-LICENSE)
303
270
 
304
- Copyright (C) 2010, 2011 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
271
+ Copyright (C) 2011, 2012 by BlueHead Publishing, Inc (http://blueheadpublishing.com)
305
272
 
306
273
  Permission is hereby granted, free of charge, to any person obtaining a copy
307
274
  of this software and associated documentation files (the "Software"), to deal
@@ -336,7 +303,6 @@ We would like to thank:
336
303
  * The Ruby/Rubygems Team www.ruby-lang.org/
337
304
  * The Thor Team - https://github.com/wycats/thor
338
305
  * Hakon Wium Lie and Bert Bos for developing the book microformat http://www.alistapart.com/articles/boom
339
- * The WKHTMLTOPDF team http://code.google.com/p/wkhtmltopdf/
340
306
 
341
307
  A List of Our Contributors:
342
308
  https://github.com/blueheadpublishing/bookshop/blob/master/CONTRIBUTORS.md
@@ -44,9 +44,9 @@ q::after {
44
44
  content: "\201D";
45
45
  }
46
46
 
47
- p { margin: 0 0 .5em 0 }
47
+ p { margin: 0 }
48
48
  p + p { text-indent: 1.3em }
49
- p.sidenote + p, p.caption, p.art { text-indent: 0; }
49
+ p.sidenote + p, p.caption, p.art { text-indent: 0 }
50
50
 
51
51
  p.author {
52
52
  margin-top: 2em;
@@ -56,7 +56,7 @@ p.author {
56
56
 
57
57
  pre { margin: 1em 1.3em; }
58
58
 
59
- a { text-decoration: underline; color: blue }
59
+ a { text-decoration: none; color: black }
60
60
 
61
61
  /* cross-references */
62
62
 
@@ -145,8 +145,8 @@ table.lined td, table.lined th {
145
145
 
146
146
 
147
147
  @page {
148
- margin: 27mm 25mm 27mm 25mm;
149
- size: 6in 9in;
148
+ margin: 27mm 16mm 27mm 16mm;
149
+ size: 7in 9.25in;
150
150
 
151
151
  @footnotes {
152
152
  border-top: thin solid black;
@@ -208,7 +208,7 @@ table.lined td, table.lined th {
208
208
  }
209
209
  }
210
210
 
211
- @page cover { margin: 0; background-color: grey;}
211
+ @page cover { margin: 0; }
212
212
 
213
213
  @page frontmatter :right {
214
214
  @top-right {
@@ -448,4 +448,4 @@ code, span.css, span.value, span.declaration {
448
448
  h1 { margin-bottom: 0.5em }
449
449
  div.frontcover, div.halftitlepage, div.titlepage, div.imprint,
450
450
  div.dedication, div.foreword, div.toc, div.index { display: none }
451
- }
451
+ }
@@ -44,9 +44,9 @@ q::after {
44
44
  content: "\201D";
45
45
  }
46
46
 
47
- p { margin: 0 0 .5em 0 }
47
+ p { margin: 0 }
48
48
  p + p { text-indent: 1.3em }
49
- p.sidenote + p, p.caption, p.art { text-indent: 0; }
49
+ p.sidenote + p, p.caption, p.art { text-indent: 0 }
50
50
 
51
51
  p.author {
52
52
  margin-top: 2em;
@@ -56,7 +56,7 @@ p.author {
56
56
 
57
57
  pre { margin: 1em 1.3em; }
58
58
 
59
- a { text-decoration: underline; color: blue }
59
+ a { text-decoration: none; color: black }
60
60
 
61
61
  /* cross-references */
62
62
 
@@ -145,8 +145,8 @@ table.lined td, table.lined th {
145
145
 
146
146
 
147
147
  @page {
148
- margin: 27mm 25mm 27mm 25mm;
149
- size: 6in 9in;
148
+ margin: 27mm 16mm 27mm 16mm;
149
+ size: 7in 9.25in;
150
150
 
151
151
  @footnotes {
152
152
  border-top: thin solid black;
@@ -208,7 +208,7 @@ table.lined td, table.lined th {
208
208
  }
209
209
  }
210
210
 
211
- @page cover { margin: 0; background-color: grey;}
211
+ @page cover { margin: 0; }
212
212
 
213
213
  @page frontmatter :right {
214
214
  @top-right {
@@ -446,6 +446,6 @@ code, span.css, span.value, span.declaration {
446
446
  @media screen, handheld {
447
447
  html { margin: 1em; font: 14px "Gill Sans", sans-serif; }
448
448
  h1 { margin-bottom: 0.5em }
449
- div.frontcover, div.halftitlepage, div.titlepage, div.imprint,
449
+ div.frontcover, div.halftitlepage,
450
450
  div.dedication, div.foreword, div.toc, div.index { display: none }
451
- }
451
+ }
@@ -44,9 +44,9 @@ q::after {
44
44
  content: "\201D";
45
45
  }
46
46
 
47
- p { margin: 0 0 .5em 0 }
47
+ p { margin: 0 }
48
48
  p + p { text-indent: 1.3em }
49
- p.sidenote + p, p.caption, p.art { text-indent: 0; }
49
+ p.sidenote + p, p.caption, p.art { text-indent: 0 }
50
50
 
51
51
  p.author {
52
52
  margin-top: 2em;
@@ -56,7 +56,7 @@ p.author {
56
56
 
57
57
  pre { margin: 1em 1.3em; }
58
58
 
59
- a { text-decoration: underline; color: blue }
59
+ a { text-decoration: none; color: black }
60
60
 
61
61
  /* cross-references */
62
62
 
@@ -145,8 +145,8 @@ table.lined td, table.lined th {
145
145
 
146
146
 
147
147
  @page {
148
- margin: 27mm 25mm 27mm 25mm;
149
- size: 6in 9in;
148
+ margin: 27mm 16mm 27mm 16mm;
149
+ size: 7in 9.25in;
150
150
 
151
151
  @footnotes {
152
152
  border-top: thin solid black;
@@ -208,7 +208,7 @@ table.lined td, table.lined th {
208
208
  }
209
209
  }
210
210
 
211
- @page cover { margin: 0; background-color: grey;}
211
+ @page cover { margin: 0; }
212
212
 
213
213
  @page frontmatter :right {
214
214
  @top-right {
@@ -448,4 +448,4 @@ code, span.css, span.value, span.declaration {
448
448
  h1 { margin-bottom: 0.5em }
449
449
  div.frontcover, div.halftitlepage, div.titlepage, div.imprint,
450
450
  div.dedication, div.foreword, div.toc, div.index { display: none }
451
- }
451
+ }
@@ -16,7 +16,7 @@ h1, h2, h3, h4, h5, h6 {
16
16
  font-family: "Gill Sans", sans-serif;
17
17
  margin: 2em 0 0.5em 0;
18
18
  page-break-after: avoid;
19
- }
19
+ }
20
20
 
21
21
  h1 {
22
22
  padding: 2em 0 2em 0;
@@ -44,9 +44,9 @@ q::after {
44
44
  content: "\201D";
45
45
  }
46
46
 
47
- p { margin: 0 0 .5em 0 }
47
+ p { margin: 0 }
48
48
  p + p { text-indent: 1.3em }
49
- p.sidenote + p, p.caption, p.art { text-indent: 0; }
49
+ p.sidenote + p, p.caption, p.art { text-indent: 0 }
50
50
 
51
51
  p.author {
52
52
  margin-top: 2em;
@@ -56,7 +56,7 @@ p.author {
56
56
 
57
57
  pre { margin: 1em 1.3em; }
58
58
 
59
- a { text-decoration: underline; color: blue }
59
+ a { text-decoration: none; color: black }
60
60
 
61
61
  /* cross-references */
62
62
 
@@ -145,8 +145,8 @@ table.lined td, table.lined th {
145
145
 
146
146
 
147
147
  @page {
148
- margin: 27mm 25mm 27mm 25mm;
149
- size: 6in 9in;
148
+ margin: 27mm 16mm 27mm 16mm;
149
+ size: 7in 9.25in;
150
150
 
151
151
  @footnotes {
152
152
  border-top: thin solid black;
@@ -208,7 +208,7 @@ table.lined td, table.lined th {
208
208
  }
209
209
  }
210
210
 
211
- @page cover { margin: 0; background-color: grey;}
211
+ @page cover { margin: 0; }
212
212
 
213
213
  @page frontmatter :right {
214
214
  @top-right {
@@ -446,6 +446,6 @@ code, span.css, span.value, span.declaration {
446
446
  @media screen, handheld {
447
447
  html { margin: 1em; font: 14px "Gill Sans", sans-serif; }
448
448
  h1 { margin-bottom: 0.5em }
449
- div.frontcover, div.halftitlepage, div.titlepage, div.imprint,
449
+ div.frontcover, div.halftitlepage,
450
450
  div.dedication, div.foreword, div.toc, div.index { display: none }
451
- }
451
+ }
@@ -0,0 +1,15 @@
1
+ <div class="index" id="index-h-1">
2
+ <h1>Index</h1>
3
+
4
+ <ul class="index">
5
+ <li><a href="#dfn-cern">CERN</a></li>
6
+ <li><a href="#dfn-internet">Internet</a></li>
7
+ <li><a href="#dfn-hyperlink">hyperlink</a></li>
8
+ <li><a href="#dfn-rule">rule</a></li>
9
+ <li><a href="#dfn-style-sheet">style sheet</a></li>
10
+ <li><a href="#dfn-w3c">W3C</a></li>
11
+ <li><a href="#dfn-web-server">Web server</a></li>
12
+ <li><a href="#dfn-w3c">World Wide Web Consortium</a></li>
13
+ </ul>
14
+
15
+ </div>
@@ -11,5 +11,5 @@ documents with the <span class="element">img</span> element &#8211;
11
11
 
12
12
  <div class="figure" id="fig-loaded">
13
13
  <p class="caption">The image has been loaded.</p>
14
- <p class="art"><img alt="[image]" src="../assets/images/html-18.png" style="width: 100%;"></p>
14
+ <p class="art"><img alt="[image]" src="assets/images/html-18.png" style="width: 100%;" /></p>
15
15
  </div>
@@ -15,9 +15,9 @@ heading or some other piece would be straight text). Also,
15
15
  there were ways to make text bold or italic, among a few other
16
16
  effects, but that's where their control ended.</p>
17
17
 
18
- <%= import('ch01/the_web.html.erb')%>
19
- <%= import('ch01/dev_of_the_web.html.erb')%>
20
- <%= import('ch01/adding_images.html.erb')%>
18
+ <%= import('bodymatter/ch01/the_web.html.erb')%>
19
+ <%= import('bodymatter/ch01/dev_of_the_web.html.erb')%>
20
+ <%= import('bodymatter/ch01/adding_images.html.erb')%>
21
21
 
22
22
 
23
23
  </div>
@@ -42,22 +42,6 @@ specification was given a minor version number (that is, 2.1)
42
42
  rather than a major number (such as CSS3).</p>
43
43
  </div>
44
44
 
45
- <%= import('ch02/rules_and_css.html.erb')%>
46
-
47
- </div>
48
-
49
- <div class="index" id="index-h-1">
50
- <h1>Index</h1>
51
-
52
- <ul class="index">
53
- <li><a href="#dfn-cern">CERN</a></li>
54
- <li><a href="#dfn-internet">Internet</a></li>
55
- <li><a href="#dfn-hyperlink">hyperlink</a></li>
56
- <li><a href="#dfn-rule">rule</a></li>
57
- <li><a href="#dfn-style-sheet">style sheet</a></li>
58
- <li><a href="#dfn-w3c">W3C</a></li>
59
- <li><a href="#dfn-web-server">Web server</a></li>
60
- <li><a href="#dfn-w3c">World Wide Web Consortium</a></li>
61
- </ul>
45
+ <%= import('bodymatter/ch02/rules_and_css.html.erb')%>
62
46
 
63
47
  </div>
@@ -3,36 +3,25 @@
3
3
  <html>
4
4
  <head>
5
5
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
6
- <meta name="pdfkit-orientation" content="Portrait" />
7
- <meta name="pdfkit-page_height" content="9in" />
8
- <meta name="pdfkit-page_width" content="6in" />
9
6
  <title>how-to bookshop</title>
10
7
  <link rel="stylesheet" type="text/css" href="assets/css/stylesheet.<%= @output %>.css" />
11
- <% if @output != :pdf %>
12
8
  <link rel="stylesheet" type="application/vnd.adobe-page-template+xml" href="assets/css/page-template.xpgt"/>
13
- <% end %>
14
9
  </head>
15
10
  <body>
16
- <p><a name="title">New Title:</a>
17
- <% if @output == :html %>
18
- <%= @book.html.title %>
19
- <% elsif @output == :pdf %>
20
- <%= @book.pdf.title %>
21
- <% elsif @output == :epub %>
22
- <%= @book.epub.title %>
23
- <% end %></p>
24
- <p>Subtitle: <%= @book.subtitle %></p>
25
- <p>ISBN: <%= @book.isbn %></p>
26
11
 
27
12
 
28
- <%= import('cover.html.erb')%>
29
- <%= import('toc.html.erb')%>
30
- <%= import('preface.html.erb')%>
13
+ <%= import('frontmatter/cover.html.erb')%>
14
+ <%= import('frontmatter/title.html.erb')%>
15
+ <%= import('frontmatter/toc.html.erb')%>
16
+ <%= import('frontmatter/preface.html.erb')%>
31
17
 
32
18
  <!-- Chapter 01 has additional imports included inside of it -->
33
- <%= import('ch01/ch01.html.erb')%>
19
+ <%= import('bodymatter/ch01/ch01.html.erb')%>
34
20
 
35
- <!-- Chapter 01 has additional imports included inside of it -->
36
- <%= import('ch02/ch02.html.erb')%>
21
+ <!-- Chapter 02 has additional imports included inside of it -->
22
+ <%= import('bodymatter/ch02/ch02.html.erb')%>
23
+
24
+
25
+ <%= import('backmatter/index.html.erb')%>
37
26
 
38
27
  </body></html>
@@ -0,0 +1,7 @@
1
+ <div class="frontcover">
2
+ <img src="assets/images/canvas.jpg" />
3
+ <h1>Cascading Style Sheets</h1>
4
+ <h2>Designing for the Web</h2>
5
+ <h3>Third Edition</h3>
6
+ <p>Sample document</p>
7
+ </div>
@@ -14,6 +14,6 @@ and CSS sources by the Prince formatter.</p>
14
14
  <p>We encourage you to reuse the structure, markup and style sheet of
15
15
  this sample document. In your own book, however, you need to provide
16
16
  the content yourself.</p>
17
- <p class="author">H&#229;kon Wium Lie &amp; Bert Bos<br>
18
- Oslo/Antibes<br>November 2005</p>
17
+ <p class="author">H&#229;kon Wium Lie &amp; Bert Bos<br />
18
+ Oslo/Antibes<br />November 2005</p>
19
19
  </div>
@@ -1,11 +1,3 @@
1
- <div class="frontcover">
2
- <img src="assets/images/canvas.jpg">
3
- <h1>Cascading Style Sheets</h1>
4
- <h2>Designing for the Web</h2>
5
- <h3>Third Edition</h3>
6
- <p>Sample document</p>
7
- </div>
8
-
9
1
  <div class="halftitlepage">
10
2
  <h1 class="no-toc">Cascading Style Sheets</h1>
11
3
  <h2 class="no-toc">Designing for the Web</h2>
@@ -17,11 +9,10 @@
17
9
  <h2 class="no-toc">Designing for the Web</h2>
18
10
  <h3 class="no-toc">Third Edition</h3>
19
11
 
20
- <p class="no-toc">H&#229;kon Wium Lie<br>Bert Bos</p>
12
+ <p class="no-toc">H&#229;kon Wium Lie<br />Bert Bos</p>
21
13
  <!-- also, the publisher's name would typically be printed here -->
22
14
  </div>
23
15
 
24
16
  <div class="imprint">
25
17
  <p>Copyright &copy; 2005 H&#229;kon Wium Lie and Bert Bos</p>
26
-
27
18
  </div>
@@ -0,0 +1,25 @@
1
+ <div class="toc" id="toc-h-1">
2
+ <h1>Table of Contents</h1>
3
+
4
+ <ul class="toc">
5
+ <li class="frontmatter"><a href="#toc-h-1">Table of Contents</a></li>
6
+ <li class="frontmatter"><a href="#preface-h-1">Preface</a></li>
7
+ <li class="chapter"><a href="#html-h-1">The Web and HTML</a>
8
+ <ul>
9
+ <li class="section"><a href="#the-web">The Web</a>
10
+ <ul>
11
+ <li class="section"><a href="#development">Development of the Web</a></li>
12
+ <li class="section"><a href="#images">Adding images</a></li>
13
+ </ul>
14
+ </li>
15
+ </ul>
16
+ </li>
17
+ <li class="chapter"><a href="#css-h-1">CSS</a>
18
+ <ul>
19
+ <li class="section"><a href="#rules">Rules and Style Sheets</a></li>
20
+ </ul>
21
+ </li>
22
+ <li class="endmatter"><a href="#index-h-1">Index</a></li>
23
+ </ul>
24
+
25
+ </div>
@@ -1,4 +1,5 @@
1
1
  # This command will automatically be run when you run "bookshop" with Bookshop gem installed from the root of your application.
2
2
 
3
3
  APP_PATH = File.expand_path('../../', __FILE__)
4
+
4
5
  require 'bookshop/commands'
@@ -1,20 +1,12 @@
1
1
  module Bookshop
2
2
  POST_INSTALL = "
3
3
  ******************************************************************
4
-
5
- Make sure to have Java 1.5 or above installed
6
-
7
-
8
- Install wkhtmltopdf:
9
-
10
- 1. Install by hand (recomended):
11
4
 
12
- https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf
13
-
14
- 2. Try using the wkhtmltopdf-binary gem (mac + linux i386)
15
-
16
- gem install wkhtmltopdf-binary
17
5
 
6
+ Install PrinceXML:
7
+
8
+ http://www.princexml.com/download/
9
+
18
10
 
19
11
  ******************************************************************
20
12
  "
@@ -1,3 +1,3 @@
1
1
  module Bookshop
2
- VERSION = "0.0.22"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,152 +1,105 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bookshop
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
4
5
  prerelease:
5
- version: 0.0.22
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Dave Thompson
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-02-04 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: thor
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70295939926980 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
23
21
  version: 0.14.6
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: rubyzip
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
35
- type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: pdfkit
39
23
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- type: :runtime
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: nokogiri
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :runtime
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *70295939926980
25
+ - !ruby/object:Gem::Dependency
60
26
  name: bundler
61
- prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
27
+ requirement: &70295939887200 !ruby/object:Gem::Requirement
63
28
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
67
32
  version: 1.0.0
68
33
  type: :development
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: rake
72
34
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
35
+ version_requirements: *70295939887200
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &70295939886440 !ruby/object:Gem::Requirement
74
39
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
79
44
  type: :development
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: minitest
83
45
  prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
46
+ version_requirements: *70295939886440
47
+ - !ruby/object:Gem::Dependency
48
+ name: minitest
49
+ requirement: &70295939885500 !ruby/object:Gem::Requirement
85
50
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
90
55
  type: :development
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
93
- name: aruba
94
56
  prerelease: false
95
- requirement: &id008 !ruby/object:Gem::Requirement
57
+ version_requirements: *70295939885500
58
+ - !ruby/object:Gem::Dependency
59
+ name: aruba
60
+ requirement: &70295939884760 !ruby/object:Gem::Requirement
96
61
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
101
66
  type: :development
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
104
- name: rdoc
105
67
  prerelease: false
106
- requirement: &id009 !ruby/object:Gem::Requirement
68
+ version_requirements: *70295939884760
69
+ - !ruby/object:Gem::Dependency
70
+ name: rdoc
71
+ requirement: &70295939884320 !ruby/object:Gem::Requirement
107
72
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
112
77
  type: :development
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
115
- name: wkhtmltopdf-binary
116
78
  prerelease: false
117
- requirement: &id010 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: "0"
123
- type: :development
124
- version_requirements: *id010
125
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *70295939884320
80
+ - !ruby/object:Gem::Dependency
126
81
  name: mocha
127
- prerelease: false
128
- requirement: &id011 !ruby/object:Gem::Requirement
82
+ requirement: &70295939883880 !ruby/object:Gem::Requirement
129
83
  none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
134
88
  type: :development
135
- version_requirements: *id011
136
- description: |-
137
- bookshop is a book publishing framework for building pdf/(e)books based on HTML,
138
- CSS, and JavaScript. The framework is optimized to help publishers, editors, and authors
139
- quickly ramp-up, allowing them to jump in and develop their html-to-pdf/(e)book flows by
140
- favoring convention over configuration, setting them up with best-practices, standards
141
- and tools from the start.
142
- email: da@blueheadpublishing.com
143
- executables:
89
+ prerelease: false
90
+ version_requirements: *70295939883880
91
+ description: ! "bookshop is a book publishing framework for building pdf/(e)books
92
+ based on HTML,\n CSS, and JavaScript. The framework is optimized
93
+ to help publishers, editors, and authors\n quickly ramp-up, allowing
94
+ them to jump in and develop their html-to-pdf/(e)book flows by\n favoring
95
+ convention over configuration, setting them up with best-practices, standards\n
96
+ \ and tools from the start."
97
+ email: dave@blueheadpublishing.com
98
+ executables:
144
99
  - bookshop
145
100
  extensions: []
146
-
147
101
  extra_rdoc_files: []
148
-
149
- files:
102
+ files:
150
103
  - README.rdoc
151
104
  - bin/bookshop
152
105
  - lib/bookshop/commands/application.rb
@@ -168,21 +121,22 @@ files:
168
121
  - lib/bookshop/generators/bookshop/app/templates/book/assets/images/canvas.jpg
169
122
  - lib/bookshop/generators/bookshop/app/templates/book/assets/images/draft.png
170
123
  - lib/bookshop/generators/bookshop/app/templates/book/assets/images/html-18.png
124
+ - lib/bookshop/generators/bookshop/app/templates/book/backmatter/index.html.erb
125
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch01/adding_images.html.erb
126
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch01/ch01.html.erb
127
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch01/dev_of_the_web.html.erb
128
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch01/the_web.html.erb
129
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch02/ch02.html.erb
130
+ - lib/bookshop/generators/bookshop/app/templates/book/bodymatter/ch02/rules_and_css.html.erb
171
131
  - lib/bookshop/generators/bookshop/app/templates/book/book.html.erb
172
- - lib/bookshop/generators/bookshop/app/templates/book/ch01/adding_images.html.erb
173
- - lib/bookshop/generators/bookshop/app/templates/book/ch01/ch01.html.erb
174
- - lib/bookshop/generators/bookshop/app/templates/book/ch01/dev_of_the_web.html.erb
175
- - lib/bookshop/generators/bookshop/app/templates/book/ch01/the_web.html.erb
176
- - lib/bookshop/generators/bookshop/app/templates/book/ch02/ch02.html.erb
177
- - lib/bookshop/generators/bookshop/app/templates/book/ch02/rules_and_css.html.erb
178
- - lib/bookshop/generators/bookshop/app/templates/book/cover.html.erb
179
- - lib/bookshop/generators/bookshop/app/templates/book/preface.html.erb
180
- - lib/bookshop/generators/bookshop/app/templates/book/toc.html.erb
132
+ - lib/bookshop/generators/bookshop/app/templates/book/frontmatter/cover.html.erb
133
+ - lib/bookshop/generators/bookshop/app/templates/book/frontmatter/preface.html.erb
134
+ - lib/bookshop/generators/bookshop/app/templates/book/frontmatter/title.html.erb
135
+ - lib/bookshop/generators/bookshop/app/templates/book/frontmatter/toc.html.erb
181
136
  - lib/bookshop/generators/bookshop/app/templates/builds/epub/META-INF/container.xml
182
137
  - lib/bookshop/generators/bookshop/app/templates/builds/epub/mimetype
183
138
  - lib/bookshop/generators/bookshop/app/templates/CHANGELOG
184
139
  - lib/bookshop/generators/bookshop/app/templates/config/book.yml
185
- - lib/bookshop/generators/bookshop/app/templates/config/toc.yml
186
140
  - lib/bookshop/generators/bookshop/app/templates/README.rdoc
187
141
  - lib/bookshop/generators/bookshop/app/templates/script/bookshop
188
142
  - lib/bookshop/generators/bookshop/app/USAGE
@@ -200,31 +154,31 @@ files:
200
154
  - lib/bookshop/generators/bookshop/app/templates/builds/mobi/.empty_directory
201
155
  - lib/bookshop/generators/bookshop/app/templates/builds/pdf/.empty_directory
202
156
  homepage: http://blueheadpublishing.github.com/bookshop/
203
- licenses:
157
+ licenses:
204
158
  - MIT
205
- post_install_message: "\n ******************************************************************\n \n Make sure to have Java 1.5 or above installed\n \n\n Install wkhtmltopdf:\n\n 1. Install by hand (recomended):\n\n https://github.com/blueheadpublishing/bookshop/wiki/Installing-wkhtmltopdf\n\n 2. Try using the wkhtmltopdf-binary gem (mac + linux i386)\n\n gem install wkhtmltopdf-binary\n\n\n ******************************************************************\n "
159
+ post_install_message: ! "\n ******************************************************************\n\n\n
160
+ \ Install PrinceXML:\n \n http://www.princexml.com/download/\n \n\n ******************************************************************\n
161
+ \ "
206
162
  rdoc_options: []
207
-
208
- require_paths:
163
+ require_paths:
209
164
  - lib
210
- required_ruby_version: !ruby/object:Gem::Requirement
165
+ required_ruby_version: !ruby/object:Gem::Requirement
211
166
  none: false
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: "0"
216
- required_rubygems_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
172
  none: false
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
221
176
  version: 1.3.6
222
177
  requirements: []
223
-
224
178
  rubyforge_project: bookshop
225
- rubygems_version: 1.8.15
179
+ rubygems_version: 1.8.17
226
180
  signing_key:
227
181
  specification_version: 3
228
- summary: A book publishing framework for building pdf/(e)books based on HTML, CSS, and JavaScript.
182
+ summary: A book publishing framework for building pdf/(e)books based on HTML, CSS,
183
+ and JavaScript.
229
184
  test_files: []
230
-
@@ -1,19 +0,0 @@
1
- <div class="toc" id="toc-h-1">
2
- <h1>Table of Contents</h1>
3
-
4
- <nav class="frontmatter"><a href="#toc-h-1">Table of Contents</a></nav>
5
- <nav class="frontmatter"><a href="#preface-h-1">Preface</a></nav>
6
- <nav class="chapter"><a href="#html-h-1">The Web and HTML</a>
7
- <nav class="section"><a href="#the-web">The Web</a>
8
- <nav class="section"><a href="#development">Development of the Web</a></nav>
9
- <nav class="section"><a href="#images">Adding images</a></nav>
10
- </nav>
11
- </nav>
12
-
13
- <nav class="chapter"><a href="#css-h-1">CSS</a>
14
- <nav class="section"><a href="#rules">Rules and Style Sheets</a></nav>
15
- </nav>
16
-
17
- <nav class="endmatter"><a href="#index-h-1">Index</a></nav>
18
-
19
- </div>
@@ -1,7 +0,0 @@
1
- foreword:
2
- id: Title
3
- text: title
4
-
5
- ch01:
6
- id: ch01
7
- text: This is the First Chapter