carta 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65e9ae27882978837e3f5a86d0ca45de9d117785
4
- data.tar.gz: 4fff04c42cb90d907201b8c29b92ce5936fbc47b
3
+ metadata.gz: 773f2e94855c3c3535f7f6556686d5721b9d049a
4
+ data.tar.gz: 219482fc4b12d483962b3630a1d14dae16d7a921
5
5
  SHA512:
6
- metadata.gz: 54abd83b5348c6951c0c0a205a08eddd599903ff23f9a9121fc7447c940e9cc4b546254e8d8e55cabebf2f085ee5e55f99ae3383fb6bcd824ab2c229a0852868
7
- data.tar.gz: c158f78043f057b4c1a394a413035c6a8341ac5e5c50ace2464af22083d704325e81e0c844095f11ba998c0a6bee623219142e0eb200015a761f2605c8c18495
6
+ metadata.gz: 5d499eed36d22d3f2430225ecec76c0f527624062122c28c1546604822adc3c5d234f72a4155b3294d510de6601bad0ce746c88bc949c7bc202d8215cdc8ce22
7
+ data.tar.gz: 1a049fcc49d06c4435d66bb134c5698e24409566790d0730076956de8343fbb510c7e24806e0e745f5bf354f26ce76e5cd59fa9624d6ec04ce5cab7826efb3b8
@@ -28,7 +28,7 @@ module Carta
28
28
  @MANUSCRIPT_DIR = "#{@PROJECT_DIR}/manuscript"
29
29
  @FIGURE_DIR = "#{@MANUSCRIPT_DIR}/figures"
30
30
  @ASSET_DIR = "#{@PROJECT_DIR}/assets"
31
- @ASSET_FILES = 'css,otf,woff,jpeg,jpg,png,svg,gif'
31
+ @ASSET_FILES = 'css,otf,woff,mov,m4v,mp4,mp3,jpeg,jpg,png,svg,gif'
32
32
  @book = YAML.load_file("#{@MANUSCRIPT_DIR}/book.yaml")
33
33
  else
34
34
  thor.error 'No book found to compile!'
@@ -36,9 +36,12 @@ module Carta
36
36
  end
37
37
 
38
38
  def run
39
+ clean
39
40
  generate_html if Dir.exists?('manuscript')
40
41
  end
41
-
42
+ def clean
43
+ thor.remove_dir "#{@PROJECT_DIR}/build"
44
+ end
42
45
  # Generates our HTML from markdown files and creates an outline
43
46
  def generate_html
44
47
  html_renderer = Carta::CLI::HTMLRenderer.new(@PROJECT_DIR)
@@ -1,5 +1,5 @@
1
1
  # Custom Renderer for Redcarpet
2
- class OutlineRenderer < Redcarpet::Render::HTML
2
+ class OutlineRenderer < Redcarpet::Render::XHTML
3
3
  attr_accessor :outline
4
4
 
5
5
  def initialize
File without changes
File without changes
@@ -1,6 +1,15 @@
1
1
  <html xmlns="http://www.w3.org/1999/xhtml"
2
2
  xmlns:epub="http://www.idpf.org/2007/ops">
3
- <head></head>
3
+ <head>
4
+ <link
5
+ rel="stylesheet"
6
+ type="text/css"
7
+ href="css/main.css"/>
8
+ <link
9
+ rel="stylesheet"
10
+ type="text/css"
11
+ href="css/epub.css"/>
12
+ </head>
4
13
  <body>
5
14
  <%= book['html'] %>
6
15
  </body>
@@ -1,6 +1,15 @@
1
1
  <html xmlns="http://www.w3.org/1999/xhtml"
2
2
  xmlns:epub="http://www.idpf.org/2007/ops">
3
- <head></head>
3
+ <head>
4
+ <link
5
+ rel="stylesheet"
6
+ type="text/css"
7
+ href="css/main.css"/>
8
+ <link
9
+ rel="stylesheet"
10
+ type="text/css"
11
+ href="css/epub.css"/>
12
+ </head>
4
13
  <body>
5
14
  <section>
6
15
  <nav epub:type="toc">
data/lib/carta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Carta
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Wreggelsworth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,6 +132,8 @@ files:
132
132
  - lib/carta/cli/outline_renderer.rb
133
133
  - lib/carta/templates/ebook/assets/cover.jpg
134
134
  - lib/carta/templates/ebook/assets/css/.empty_directory
135
+ - lib/carta/templates/ebook/assets/css/epub.css
136
+ - lib/carta/templates/ebook/assets/css/main.css
135
137
  - lib/carta/templates/ebook/assets/fonts/.empty_directory
136
138
  - lib/carta/templates/ebook/layouts/epub/EPUB/content.xhtml.erb
137
139
  - lib/carta/templates/ebook/layouts/epub/EPUB/main.ncx.erb