carta 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/carta/cli/compile.rb +5 -2
- data/lib/carta/cli/outline_renderer.rb +1 -1
- data/lib/carta/templates/ebook/assets/css/epub.css +0 -0
- data/lib/carta/templates/ebook/assets/css/main.css +0 -0
- data/lib/carta/templates/ebook/layouts/epub/EPUB/content.xhtml.erb +10 -1
- data/lib/carta/templates/ebook/layouts/epub/EPUB/nav.xhtml.erb +10 -1
- data/lib/carta/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 773f2e94855c3c3535f7f6556686d5721b9d049a
|
|
4
|
+
data.tar.gz: 219482fc4b12d483962b3630a1d14dae16d7a921
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d499eed36d22d3f2430225ecec76c0f527624062122c28c1546604822adc3c5d234f72a4155b3294d510de6601bad0ce746c88bc949c7bc202d8215cdc8ce22
|
|
7
|
+
data.tar.gz: 1a049fcc49d06c4435d66bb134c5698e24409566790d0730076956de8343fbb510c7e24806e0e745f5bf354f26ce76e5cd59fa9624d6ec04ce5cab7826efb3b8
|
data/lib/carta/cli/compile.rb
CHANGED
|
@@ -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)
|
|
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
|
|
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
|
|
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
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.
|
|
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-
|
|
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
|