softcover 0.6.0 → 0.6.1
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/.pull_requests/1384447036 +0 -0
- data/lib/softcover/book.rb +1 -1
- data/lib/softcover/builders/epub.rb +1 -1
- data/lib/softcover/cli.rb +1 -1
- data/lib/softcover/template/chapters/a_chapter.md +1 -1
- data/lib/softcover/template/chapters/a_chapter.tex +23 -22
- data/lib/softcover/template/epub/OEBPS/styles/epub.css +9 -0
- data/lib/softcover/version.rb +1 -1
- data/spec/fixtures/.gitkeep +0 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 810f0a9d1295ebe59b85307d284783b81d9221e5
|
4
|
+
data.tar.gz: 575e05eac1784232405f765fac5b01a532d87286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d39595bdaa8c8fc5b71d1681fe2d63a8dcc0e6cd88a049593e4f26c57cbbfa4b2e8dd615262973ea3e7aa9cadd977cb58e58185d512bbfeb5d81d1a5711e13cb
|
7
|
+
data.tar.gz: eaf552cae27c6439fa18ca13ed8cde16f47d6a26fb810d1c41e0669d4e45045cb8ee300312c955f1fb38076786fbf7f82c0c663f81057e621b21f8ea13b5b3dd
|
File without changes
|
data/lib/softcover/book.rb
CHANGED
@@ -152,7 +152,7 @@ module Softcover
|
|
152
152
|
puts "Creating #{png_filename}"
|
153
153
|
end
|
154
154
|
svg_height = svg['style'].scan(/height: (.*?);/).flatten.first
|
155
|
-
scale_factor =
|
155
|
+
scale_factor = 8 # This scale factor turns out to look good.
|
156
156
|
h = scale_factor * svg_height.to_f
|
157
157
|
cmd = "#{inkscape} -f #{svg_filename} -e #{png_filename} -h #{h}pt"
|
158
158
|
if options[:silent]
|
data/lib/softcover/cli.rb
CHANGED
@@ -181,7 +181,7 @@ module Softcover
|
|
181
181
|
# Open
|
182
182
|
# ===============================================
|
183
183
|
|
184
|
-
desc "open", "Open book on Softcover website (OS X
|
184
|
+
desc "open", "Open book on Softcover website (OS X)"
|
185
185
|
def open
|
186
186
|
Softcover::Commands::Opener.open!
|
187
187
|
end
|
@@ -109,7 +109,7 @@ Commands:
|
|
109
109
|
softcover login # Log into Softcover account
|
110
110
|
softcover logout # Log out of Softcover account
|
111
111
|
softcover new <name> # Generate new book directory structure.
|
112
|
-
softcover open # Open book on Softcover website
|
112
|
+
softcover open # Open book on Softcover website (OS X)
|
113
113
|
softcover publish # Publish your book on Softcover
|
114
114
|
softcover publish:screencasts # Publish screencasts
|
115
115
|
softcover server # Run local server
|
@@ -20,6 +20,7 @@ Softcover comes with full support for syntax-highlighted source code:
|
|
20
20
|
\begin{code}
|
21
21
|
def hello
|
22
22
|
puts "hello, world!"
|
23
|
+
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod t"
|
23
24
|
end
|
24
25
|
\end{code}
|
25
26
|
\noindent Softcover can highlight any language supported by \href{http://pygments.org/languages/}{Pygments} (which means most of them).
|
@@ -140,37 +141,37 @@ Softcover supports raw tables via the \kode{tabular} environment. To make a tabu
|
|
140
141
|
|
141
142
|
\section{Command-line interface}
|
142
143
|
|
143
|
-
Softcover comes with a command-line interface called \kode{poly}. To get more information, just run \kode{
|
144
|
+
Softcover comes with a command-line interface called \kode{poly}. To get more information, just run \kode{softcoverhelp}:
|
144
145
|
|
145
146
|
%= lang:console
|
146
147
|
\begin{code}
|
147
|
-
$
|
148
|
+
$ softcoverhelp
|
148
149
|
Commands:
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
150
|
+
softcover build, build:all # Build all formats
|
151
|
+
softcover build:epub # Build EPUB
|
152
|
+
softcover build:html # Build HTML
|
153
|
+
softcover build:mobi # Build MOBI
|
154
|
+
softcover build:pdf # Build PDF
|
155
|
+
softcover build:preview # Build book preview in all formats
|
156
|
+
softcover config # View local config
|
157
|
+
softcover config:add key=value # Add to your local config vars
|
158
|
+
softcover epub:validate, epub:check # Validate EPUB with epubcheck
|
159
|
+
softcover help [COMMAND] # Describe available commands...
|
160
|
+
softcover login # Log into Softcover account
|
161
|
+
softcover logout # Log out of Softcover account
|
162
|
+
softcover new <name> # Generate new book directory structure.
|
163
|
+
softcover open # Open book on Softcover website (OS X)
|
164
|
+
softcover publish # Publish your book on Softcover
|
165
|
+
softcover publish:screencasts # Publish screencasts
|
166
|
+
softcover server # Run local server
|
166
167
|
\end{code}
|
167
168
|
|
168
|
-
For additional help on a given command, run \kode{
|
169
|
+
For additional help on a given command, run \kode{softcoverhelp <command>}:
|
169
170
|
%= lang:console
|
170
171
|
\begin{code}
|
171
|
-
$
|
172
|
+
$ softcoverhelp build
|
172
173
|
Usage:
|
173
|
-
|
174
|
+
softcoverbuild, build:all
|
174
175
|
|
175
176
|
Options:
|
176
177
|
-q, [--quiet] # Quiet output
|
data/lib/softcover/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softcover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -361,6 +361,7 @@ files:
|
|
361
361
|
- .pull_requests/1383707748
|
362
362
|
- .pull_requests/1384207054
|
363
363
|
- .pull_requests/1384304643
|
364
|
+
- .pull_requests/1384447036
|
364
365
|
- .rspec
|
365
366
|
- .ruby-gemset
|
366
367
|
- .ruby-version
|
@@ -994,6 +995,7 @@ files:
|
|
994
995
|
- spec/commands/opener_spec.rb
|
995
996
|
- spec/commands/publisher_spec.rb
|
996
997
|
- spec/commands/server_spec.rb
|
998
|
+
- spec/fixtures/.gitkeep
|
997
999
|
- spec/mathjax_spec.rb
|
998
1000
|
- spec/output_spec.rb
|
999
1001
|
- spec/sanitizer_spec.rb
|
@@ -1042,6 +1044,7 @@ test_files:
|
|
1042
1044
|
- spec/commands/opener_spec.rb
|
1043
1045
|
- spec/commands/publisher_spec.rb
|
1044
1046
|
- spec/commands/server_spec.rb
|
1047
|
+
- spec/fixtures/.gitkeep
|
1045
1048
|
- spec/mathjax_spec.rb
|
1046
1049
|
- spec/output_spec.rb
|
1047
1050
|
- spec/sanitizer_spec.rb
|