fnando-kitabu 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/History.txt +59 -0
  2. data/License.txt +20 -0
  3. data/README.markdown +216 -0
  4. data/Rakefile +68 -0
  5. data/TODO.txt +2 -0
  6. data/app_generators/kitabu/USAGE +5 -0
  7. data/app_generators/kitabu/kitabu_generator.rb +68 -0
  8. data/app_generators/kitabu/templates/Rakefile +3 -0
  9. data/app_generators/kitabu/templates/config.yml +8 -0
  10. data/app_generators/kitabu/templates/css/active4d.css +114 -0
  11. data/app_generators/kitabu/templates/css/blackboard.css +88 -0
  12. data/app_generators/kitabu/templates/css/dawn.css +121 -0
  13. data/app_generators/kitabu/templates/css/eiffel.css +121 -0
  14. data/app_generators/kitabu/templates/css/idle.css +62 -0
  15. data/app_generators/kitabu/templates/css/iplastic.css +80 -0
  16. data/app_generators/kitabu/templates/css/lazy.css +73 -0
  17. data/app_generators/kitabu/templates/css/mac_classic.css +123 -0
  18. data/app_generators/kitabu/templates/css/slush_poppies.css +85 -0
  19. data/app_generators/kitabu/templates/css/sunburst.css +180 -0
  20. data/app_generators/kitabu/templates/layouts/boom/layout.css +469 -0
  21. data/app_generators/kitabu/templates/layouts/boom/layout.html +37 -0
  22. data/app_generators/kitabu/templates/user.css +0 -0
  23. data/bin/kitabu +17 -0
  24. data/kitabu.gemspec +79 -0
  25. data/lib/kitabu/base.rb +332 -0
  26. data/lib/kitabu/blackcloth.rb +165 -0
  27. data/lib/kitabu/redcloth.rb +963 -0
  28. data/lib/kitabu/tasks.rb +119 -0
  29. data/lib/kitabu.rb +18 -0
  30. data/themes/active4d.css +114 -0
  31. data/themes/all_hallows_eve.css +72 -0
  32. data/themes/amy.css +147 -0
  33. data/themes/blackboard.css +88 -0
  34. data/themes/brilliance_black.css +605 -0
  35. data/themes/brilliance_dull.css +599 -0
  36. data/themes/cobalt.css +149 -0
  37. data/themes/dawn.css +121 -0
  38. data/themes/eiffel.css +121 -0
  39. data/themes/espresso_libre.css +109 -0
  40. data/themes/idle.css +62 -0
  41. data/themes/iplastic.css +80 -0
  42. data/themes/lazy.css +73 -0
  43. data/themes/mac_classic.css +123 -0
  44. data/themes/magicwb_amiga.css +104 -0
  45. data/themes/pastels_on_dark.css +188 -0
  46. data/themes/slush_poppies.css +85 -0
  47. data/themes/spacecadet.css +51 -0
  48. data/themes/sunburst.css +180 -0
  49. data/themes/twilight.css +137 -0
  50. data/themes/zenburnesque.css +91 -0
  51. metadata +144 -0
@@ -0,0 +1,180 @@
1
+ pre.sunburst .DiffInserted {
2
+ background-color: #253B22;
3
+ color: #F8F8F8;
4
+ }
5
+ pre.sunburst .DiffHeader {
6
+ background-color: #0E2231;
7
+ color: #F8F8F8;
8
+ font-style: italic;
9
+ }
10
+ pre.sunburst .CssPropertyValue {
11
+ color: #F9EE98;
12
+ }
13
+ pre.sunburst .CCCPreprocessorDirective {
14
+ color: #AFC4DB;
15
+ }
16
+ pre.sunburst .Constant {
17
+ color: #3387CC;
18
+ }
19
+ pre.sunburst .DiffChanged {
20
+ background-color: #4A410D;
21
+ color: #F8F8F8;
22
+ }
23
+ pre.sunburst .Support {
24
+ color: #9B859D;
25
+ }
26
+ pre.sunburst .MarkupList {
27
+ color: #E1D4B9;
28
+ }
29
+ pre.sunburst .CssConstructorArgument {
30
+ color: #8F9D6A;
31
+ }
32
+ pre.sunburst .Storage {
33
+ color: #99CF50;
34
+ }
35
+ pre.sunburst .line-numbers {
36
+ background-color: #DDF0FF;
37
+ color: #000000;
38
+ }
39
+ pre.sunburst .CssClass {
40
+ color: #9B703F;
41
+ }
42
+ pre.sunburst .StringConstant {
43
+ color: #DDF2A4;
44
+ }
45
+ pre.sunburst .MarkupSeparator {
46
+ background-color: #242424;
47
+ color: #60A633;
48
+ }
49
+ pre.sunburst .MarkupUnderline {
50
+ text-decoration: underline;
51
+ color: #E18964;
52
+ }
53
+ pre.sunburst .CssAtRule {
54
+ color: #8693A5;
55
+ }
56
+ pre.sunburst .MetaTagInline {
57
+ color: #E0C589;
58
+ }
59
+ pre.sunburst .JEntityNameType {
60
+ text-decoration: underline;
61
+ }
62
+ pre.sunburst .LogEntryError {
63
+ background-color: #751012;
64
+ }
65
+ pre.sunburst .MarkupHeading {
66
+ background-color: #632D04;
67
+ color: #FEDCC5;
68
+ }
69
+ pre.sunburst .CssTagName {
70
+ color: #CDA869;
71
+ }
72
+ pre.sunburst .SupportConstant {
73
+ color: #CF6A4C;
74
+ }
75
+ pre.sunburst .MarkupQuote {
76
+ background-color: #ECD091;
77
+ color: #E1D4B9;
78
+ font-style: italic;
79
+ }
80
+ pre.sunburst .DiffDeleted {
81
+ background-color: #420E09;
82
+ color: #F8F8F8;
83
+ }
84
+ pre.sunburst .CCCPreprocessorLine {
85
+ color: #8996A8;
86
+ }
87
+ pre.sunburst .StringRegexpSpecial {
88
+ color: #CF7D34;
89
+ }
90
+ pre.sunburst .EmbeddedSourceBright {
91
+ background-color: #ABADB4;
92
+ }
93
+ pre.sunburst .InvalidIllegal {
94
+ background-color: #150B15;
95
+ color: #FD5FF1;
96
+ }
97
+ pre.sunburst .MarkupRaw {
98
+ background-color: #ABADB4;
99
+ color: #578BB3;
100
+ }
101
+ pre.sunburst .SupportFunction {
102
+ color: #DAD085;
103
+ }
104
+ pre.sunburst .CssAdditionalConstants {
105
+ color: #DD7B3B;
106
+ }
107
+ pre.sunburst .MetaTagAll {
108
+ color: #89BDFF;
109
+ }
110
+ pre.sunburst .StringRegexp {
111
+ color: #E9C062;
112
+ }
113
+ pre.sunburst .StringEmbeddedSource {
114
+ color: #DAEFA3;
115
+ }
116
+ pre.sunburst .EntityInheritedClass {
117
+ color: #9B5C2E;
118
+ font-style: italic;
119
+ }
120
+ pre.sunburst .MarkupComment {
121
+ color: #F67B37;
122
+ font-style: italic;
123
+ }
124
+ pre.sunburst .MarkupBold {
125
+ font-weight: bold;
126
+ color: #E9C062;
127
+ }
128
+ pre.sunburst .CssId {
129
+ color: #8B98AB;
130
+ }
131
+ pre.sunburst .CssPseudoClass {
132
+ color: #8F9D6A;
133
+ }
134
+ pre.sunburst .JCast {
135
+ color: #676767;
136
+ font-style: italic;
137
+ }
138
+ pre.sunburst .StringVariable {
139
+ color: #8A9A95;
140
+ }
141
+ pre.sunburst .String {
142
+ color: #65B042;
143
+ }
144
+ pre.sunburst .Keyword {
145
+ color: #E28964;
146
+ }
147
+ pre.sunburst {
148
+ background-color: #000000;
149
+ color: #F8F8F8;
150
+ }
151
+ pre.sunburst .LogEntry {
152
+ background-color: #C7C7C7;
153
+ }
154
+ pre.sunburst .MarkupItalic {
155
+ color: #E9C062;
156
+ font-style: italic;
157
+ }
158
+ pre.sunburst .CssPropertyName {
159
+ color: #C5AF75;
160
+ }
161
+ pre.sunburst .Namespaces {
162
+ color: #E18964;
163
+ }
164
+ pre.sunburst .DoctypeXmlProcessing {
165
+ color: #494949;
166
+ }
167
+ pre.sunburst .InvalidDeprecated {
168
+ color: #FD5FF1;
169
+ font-style: italic;
170
+ }
171
+ pre.sunburst .Variable {
172
+ color: #3E87E3;
173
+ }
174
+ pre.sunburst .Entity {
175
+ color: #89BDFF;
176
+ }
177
+ pre.sunburst .Comment {
178
+ color: #AEAEAE;
179
+ font-style: italic;
180
+ }
@@ -0,0 +1,469 @@
1
+ /* Sample style sheet for boom!, the book microformat */
2
+ /* written by Hakon Wium Lie and Bert Bos, November 2005 */
3
+ /* You may reuse this style sheet for any purpose without any fees */
4
+
5
+ html {
6
+ margin: 0;
7
+ font: 10pt/1.26 "Gill Sans", sans-serif;
8
+ }
9
+
10
+ body {
11
+ margin: 0 0 0 13%;
12
+ }
13
+
14
+ h1, h2, h3, h4, h5, h6 {
15
+ font-family: "Gill Sans", sans-serif;
16
+ margin: 2em 0 0.5em 0;
17
+ page-break-after: avoid;
18
+ }
19
+
20
+ h1 {
21
+ page-break-before: always;
22
+ padding: 2em 0 2em 0;
23
+ margin: 0;
24
+ font-size: 2.4em;
25
+ font-weight: 900;
26
+ }
27
+
28
+ h2 {
29
+ font-size: 1.2em;
30
+ text-transform: uppercase;
31
+ font-weight: bold;
32
+ }
33
+
34
+ h3 {
35
+ font-size: 1em;
36
+ font-weight: bold;
37
+ }
38
+
39
+ q::before {
40
+ content: "\201C";
41
+ }
42
+
43
+ q::after {
44
+ content: "\201D";
45
+ }
46
+
47
+ /*p { margin: 0 }*/
48
+ /*p + p { text-indent: 1.3em }*/
49
+ p.sidenote + p, p.caption, p.art { text-indent: 0 }
50
+
51
+ p.author {
52
+ margin-top: 2em;
53
+ text-indent: 0;
54
+ text-align: right;
55
+ }
56
+
57
+ pre { margin: 1em 1.3em; color: #600; }
58
+
59
+ a { text-decoration: none; color: black }
60
+
61
+ /* cross-references */
62
+
63
+ a.pageref::after { content: " on page " target-counter(attr(href), page); }
64
+ a.chapref::before { content: " Chapter " target-counter(attr(href), chapter) ", "; }
65
+ a.figref { content: " Figure " target-counter(attr(href), figure); }
66
+ a.tableref { content: " Table " target-counter(attr(href), figure); }
67
+
68
+ /* sidenotes */
69
+
70
+ .sidenote {
71
+ float: left;
72
+ clear: left;
73
+ margin: 0 0 1em -41%;
74
+ width: 37%;
75
+ font-size: 0.9em;
76
+ font-style: normal;
77
+ text-indent: 0;
78
+ text-align: right;
79
+ page-break-inside: avoid;
80
+ }
81
+
82
+ /* sidebars */
83
+
84
+ div.sidebar {
85
+ float: top-next;
86
+ margin: 1.2em 0 1.2em 0;
87
+ border: thin solid;
88
+ background: #CCC;
89
+ padding: 0.5em 1em;
90
+ page-break-inside: avoid;
91
+ column-count: 2;
92
+ column-gap: 1.5em;
93
+ }
94
+
95
+ div.sidebar h2 {
96
+ margin-top: 0;
97
+ }
98
+
99
+ /* figures and tables*/
100
+
101
+ div.figure {
102
+ margin: 1em 0;
103
+ counter-increment: figure;
104
+ }
105
+
106
+ div.figure .caption, div.table .caption {
107
+ float: left;
108
+ clear: left;
109
+ width: 37%;
110
+ text-align: right;
111
+ font-size: 0.9em;
112
+ margin: 0 0 1.2em -40%;
113
+ }
114
+
115
+ div.figure .caption::before {
116
+ content: "Figure " counter(figure) ": ";
117
+ font-weight: bold;
118
+ }
119
+
120
+ div.table .caption::before {
121
+ content: "Table " counter(table) ": ";
122
+ font-weight: bold;
123
+ }
124
+
125
+ div.table {
126
+ margin: 1em 0;
127
+ counter-increment: table;
128
+ }
129
+
130
+ div.table th {
131
+ text-align: left;
132
+ }
133
+
134
+ table th, table td {
135
+ text-align: left;
136
+ padding-right: 1em;
137
+ }
138
+
139
+ table.lined td, table.lined th {
140
+ border-top: none;
141
+ border-bottom: thin dotted;
142
+ padding-top: 0.2em;
143
+ padding-bottom: 0.2em;
144
+ }
145
+
146
+
147
+ @page {
148
+ margin: 27mm 16mm 27mm 16mm;
149
+ size: 7in 9.25in landscape;
150
+
151
+ @footnotes {
152
+ border-top: thin solid black;
153
+ padding-top: 0.3em;
154
+ margin-top: 0.6em;
155
+ margin-left: 30%;
156
+ }
157
+ }
158
+
159
+
160
+ /* define default page and names pages: cover, blank, frontmatter */
161
+
162
+ @page :left {
163
+ @top-left {
164
+ font: 11pt "Gill Sans", serif;
165
+ vertical-align: bottom;
166
+ padding-bottom: 2em;
167
+ }
168
+
169
+ @bottom-left {
170
+ font: 11pt "Gill Sans", serif;
171
+ content: counter(page);
172
+ padding-top: 2em;
173
+ vertical-align: top;
174
+ }
175
+ }
176
+
177
+ @page :right {
178
+ @top-right {
179
+ font: 11pt "Gill Sans", serif;
180
+ content: string(header, first);
181
+ vertical-align: bottom;
182
+ padding-bottom: 2em;
183
+ }
184
+
185
+ @bottom-right {
186
+ font: 11pt "Gill Sans", serif;
187
+ content: counter(page);
188
+ text-align: right;
189
+ vertical-align: top;
190
+ padding-top: 2em;
191
+ }
192
+ }
193
+
194
+ @page frontmatter :left {
195
+ @top-left {
196
+ font: 11pt "Gill Sans", serif;
197
+ content: string(title);
198
+ vertical-align: bottom;
199
+ padding-bottom: 2em;
200
+ }
201
+
202
+ @bottom-left {
203
+ font: 11pt "Gill Sans", serif;
204
+ content: counter(page, lower-roman);
205
+ padding-top: 2em;
206
+ vertical-align: top;
207
+ }
208
+ }
209
+
210
+ @page cover { margin: 0; }
211
+
212
+ @page frontmatter :right {
213
+ @top-right {
214
+ font: 11pt "Gill Sans", serif;
215
+ content: string(header, first);
216
+ vertical-align: bottom;
217
+ padding-bottom: 2em;
218
+ }
219
+
220
+ @bottom-right {
221
+ font: 11pt "Gill Sans", serif;
222
+ content: counter(page, lower-roman);
223
+ text-align: right;
224
+ vertical-align: top;
225
+ padding-top: 2em;
226
+ }
227
+ }
228
+
229
+ @page blank :left {
230
+ @top-left { content: normal }
231
+ @bottom-left { content: normal }
232
+ }
233
+
234
+ @page blank :right {
235
+ @top-right { content: normal }
236
+ @bottom-right { content: normal }
237
+ }
238
+
239
+ /* footnotes */
240
+
241
+ .footnote {
242
+ display: none; /* default rule */
243
+
244
+ display: prince-footnote; /* prince-specific rules */
245
+ position: footnote;
246
+ footnote-style-position: inside;
247
+
248
+ counter-increment: footnote;
249
+ margin-left: 1.4em;
250
+ font-size: 90%;
251
+ line-height: 1.4;
252
+ }
253
+
254
+ .footnote::footnote-call {
255
+ vertical-align: super;
256
+ font-size: 80%;
257
+ }
258
+
259
+ .footnote::footnote-marker {
260
+ vertical-align: super;
261
+ color: green;
262
+ padding-right: 0.4em;
263
+ }
264
+
265
+
266
+ /*
267
+ A book consists of different types of sections. We propose to use
268
+ DIV elements with these class names:
269
+
270
+ frontcover
271
+ halftitlepage: contains the title of the book
272
+ titlepage: contains the title of the book, name of author(s) and publisher
273
+ imprint: left page with copyright, publisher, library printing information
274
+ dedication: right page with short dedication
275
+ foreword: written by someone other than the author(s)
276
+ toc: table of contents
277
+ preface: preface, including acknowledgements
278
+ chapter: each chapter is given its own DIV element
279
+ references: contains list of references
280
+ appendix: each appendix is given its own
281
+ bibliography
282
+ glossary
283
+ index
284
+ colophon: describes how the book was produced
285
+ backcover
286
+
287
+ A book will use several of the types listed above, but few books
288
+ will use all of them.
289
+ */
290
+
291
+ /* which section uses which named page */
292
+
293
+ div.halftitlepage, div.titlepage, div.imprint, div.dedication { page: blank }
294
+ div.foreword, div.toc, div.preface { page: frontmatter }
295
+
296
+
297
+ /* page breaks */
298
+
299
+ div.frontcover, div.halftitlepage, div.titlepage { page-break-before: right }
300
+ div.imprint { page-break-before: always }
301
+ div.dedication, div.foreword, div.toc, div.preface, div.chapter, div.reference,
302
+ div.appendix, div.bibliography, div.glossary, div.index, div.colophon {
303
+ page-break-before: always
304
+ }
305
+
306
+ div.backcover {
307
+ page-break-before: left;
308
+ page: cover;
309
+ position: absolute;
310
+ width: 9.25in; height: 7in;
311
+ left: 0; top: 0;
312
+ z-index: -1;
313
+ }
314
+
315
+ /* the front cover; this code is probably not very reusable by other books */
316
+
317
+ div.frontcover {
318
+ page: cover;
319
+ position: absolute;
320
+ width: 9.25in; height: 7in;
321
+ left: 0; top: 0;
322
+ z-index: -1;
323
+ }
324
+
325
+ div.frontcover img {
326
+ position: absolute;
327
+ width: 9.25in; height: 7in;
328
+ /* width: 7in; height: 9.25in;*/
329
+ left: 0; top: 0;
330
+ z-index: -1;
331
+ }
332
+
333
+ div.frontcover h1 {
334
+ position: absolute;
335
+ left: 2cm; top: 1cm;
336
+ color: white;
337
+ font-size: 44pt;
338
+ font-weight: normal;
339
+ }
340
+
341
+ div.frontcover h2 {
342
+ position: absolute;
343
+ right: 0; top: 5cm;
344
+ color: black;
345
+ background: white;
346
+ font-size: 16pt;
347
+ font-weight: normal;
348
+ padding: 0.2em 5em 0.2em 1em;
349
+ letter-spacing: 0.15em;
350
+ }
351
+
352
+ div.frontcover h3 {
353
+ position: absolute;
354
+ left: 2cm; top: 7cm;
355
+ color: white;
356
+ font-size: 24pt;
357
+ font-weight: normal;
358
+ }
359
+
360
+ div.frontcover p {
361
+ position: absolute;
362
+ left: 2cm; bottom: 1.5cm;
363
+ font-size: 24pt;
364
+ color: black;
365
+ font-weight: bold;
366
+ text-transform: uppercase;
367
+ }
368
+
369
+
370
+ /* titlepage, halftitlepage */
371
+
372
+ div.titlepage h1, div.halftitlepage h1 { margin-bottom: 2em; }
373
+ div.titlepage h2, div.halftitlepage h2 { font-size: 1.2em; margin-bottom: 3em; }
374
+ div.titlepage h3, div.halftitlepage h3 { font-size: 1em; margin-bottom: 3em; }
375
+ div.titlepage p, div.halftitlepage p {
376
+ font-size: 1.4em;
377
+ font-weight: bold;
378
+ margin: 0; padding: 0;
379
+ }
380
+
381
+
382
+ /* TOC */
383
+
384
+ ul.toc, ul.toc ul {
385
+ list-style-type: none;
386
+ margin: 0; padding: 0;
387
+ }
388
+ ul.toc ul {
389
+ margin-left: 1em;
390
+ font-weight: normal;
391
+ }
392
+ ul.toc > li {
393
+ font-weight: bold;
394
+ margin-bottom: 0.5em;
395
+ }
396
+ ul.toc a::after {
397
+ content: leader('.') target-counter(attr(href), page);
398
+ font-style: normal;
399
+ }
400
+ ul.toc > li.frontmatter a::after {
401
+ content: leader('.') target-counter(attr(href), page, lower-roman);
402
+ font-style: normal;
403
+ }
404
+ ul.toc > li.endmatter a::after {
405
+ content: leader('.') target-counter(attr(href), page);
406
+ font-style: normal;
407
+ }
408
+ ul.toc > li.chapter::before {
409
+ content: "Chapter " counter(toc-chapter, decimal);
410
+ display: block;
411
+ margin: 1em 0 0.1em -2.5cm;
412
+ font-weight: normal;
413
+ counter-increment: toc-chapter;
414
+ page-break-after: avoid;
415
+ }
416
+
417
+ /* chapter numbers */
418
+
419
+ div.chapter h1 { counter-increment: chapter }
420
+
421
+ h1::before {
422
+ white-space: pre;
423
+ margin-left: -2.5cm;
424
+ font-size: 50%;
425
+ content: "\B0 \B0 \B0 \B0 \B0 \A"; /* ornaments */
426
+ }
427
+
428
+ div.chapter h1::before { content: "Chapter " counter(chapter) " \A"; }
429
+
430
+ div.frontcover h1::before, div.titlepage h1::before, div.halftitlepage h1::before {
431
+ content: normal; /* that is, none */
432
+ }
433
+
434
+ h1 { string-set: header content();}
435
+ div.chapter h1 { string-set: header "Chapter " counter(chapter) ": " content(); }
436
+
437
+ /* index */
438
+
439
+ ul.index {
440
+ list-style-type: none;
441
+ margin: 0; padding: 0;
442
+ column-count: 2;
443
+ column-gap: 1em;
444
+ }
445
+
446
+ ul.index a::after { content: ", " target-counter(attr(href), page); }
447
+
448
+
449
+ span.element, span.attribute {
450
+ text-transform: uppercase;
451
+ font-weight: bold;
452
+ font-size: 80%;
453
+ }
454
+ span.property { font-weight: bold }
455
+ code, pre, span.css, span.value, span.declaration {
456
+ font-size: 8pt;
457
+ font-family: Monaco, "Lucida Console", "Lucida Sans Typewriter", monospace;
458
+ }
459
+
460
+
461
+ @media screen, handheld {
462
+ html { margin: 1em; font: 14px "Gill Sans", sans-serif; }
463
+ h1 { margin-bottom: 0.5em }
464
+ div.frontcover, div.backcover, div.halftitlepage, div.titlepage, div.imprint,
465
+ div.dedication, div.foreword, div.toc, div.index { display: none }
466
+ }
467
+
468
+
469
+ div.white_page { page: cover; }
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <link rel="stylesheet" type="text/css" href="../templates/layout.css"/>
7
+ <link rel="stylesheet" type="text/css" href="../templates/syntax.css"/>
8
+ <link rel="stylesheet" type="text/css" href="../templates/user.css"/>
9
+
10
+ <meta name="author" content="<%%= authors.join(', ') %>" />
11
+ <meta name="subject" content="<%%= subject %>" />
12
+ <meta name="keywords" content="<%%= keywords %>" />
13
+ </head>
14
+ <body>
15
+ <div class="frontcover"></div>
16
+ <div class="halftitlepage">
17
+ <h1 class="no-toc"><%%= title %></h1>
18
+ </div>
19
+
20
+ <div class="titlepage">
21
+ <h1 class="no-toc"><%%= title %></h1>
22
+ <p class="no-toc"><%%= authors.join('<br/>') %></p>
23
+ </div>
24
+
25
+ <div class="imprint">
26
+ <p><%%= copyright %></p>
27
+ </div>
28
+
29
+ <div class="chapters">
30
+ <%%= contents %>
31
+ </div>
32
+
33
+ <div class="white_page"></div>
34
+ <div class="white_page"></div>
35
+ <div class="backcover"></div>
36
+ </body>
37
+ </html>
File without changes
data/bin/kitabu ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'rubigen'
5
+
6
+ if %w(-v --version).include? ARGV.first
7
+ require 'kitabu/version'
8
+ puts "#{File.basename($0)} #{Kitabu::VERSION::STRING}"
9
+ exit(0)
10
+ end
11
+
12
+ require 'rubigen/scripts/generate'
13
+ source = RubiGen::PathSource.new(:application,
14
+ File.join(File.dirname(__FILE__), "../app_generators"))
15
+ RubiGen::Base.reset_sources
16
+ RubiGen::Base.append_sources source
17
+ RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'kitabu')