softcover 1.0.3 → 1.0.4

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: 7026acaeeee742fc0106dc40e1b8363023ca75f6
4
- data.tar.gz: 2c91035ab74d0857af71a6f2875cd1ba8769a132
3
+ metadata.gz: fac52213a9efd12b1bdb2fb63c15e214d21ebe6f
4
+ data.tar.gz: 32bc066d29b012a8141e04c07522e39d90792d82
5
5
  SHA512:
6
- metadata.gz: c38f05cf9d58ac7422326eecd21a3d86d7c4ca212e0012f8abbf6405222564c9b41fa1e3758220452e78b534c36a69421d799f96a03b5f0bb593660d39cc1caf
7
- data.tar.gz: 2db0085641ff42ab27d86e60333e58b7a8237649f4e9ad0f247742c9306f7b3849569022f3b2684febe452ca8ac7802f5722a3132a5837fbd29732097b8edbc3
6
+ metadata.gz: 0e54ea914e072d0275188aa6d878560f8db59e466397a3ec59e9bb3007364b442cf2d957f1d8a6339f5d10d71516352a29e476b75b7c38c771bd3039f46a9449
7
+ data.tar.gz: 2480693e675372bcd2ee3a94a0dc272f825151ac794b732785aec899663576a4f322665b67b5e9dd0a70e2a28629595621210361d5a82b3381f1ac1808aa02f1
@@ -1,7 +1,7 @@
1
1
  # The first chapter
2
2
  \label{cha:a_chapter}
3
3
 
4
- This is the first paragraph of the Softcover Markdown template produced with the \softcover\ command-line interface. It shows how to write a document in Markdown, a lightweight markup language, augmented with the [kramdown](http://kramdown.gettalong.org/) converter and some custom extensions, including support for embedded \PolyTeX, a subset of the powerful \LaTeX\ typesetting system. For more information, see [*The Softcover Book*](http://manual.softcover.io/book). To learn how to easily publish (and optionally sell) documents produced with Softcover, visit [Softcover.io](http://softcover.io/).
4
+ This is the first paragraph of the Softcover Markdown template produced with the \softcover\ command-line interface. It shows how to write a document in Markdown, a lightweight markup language, augmented with the [kramdown](http://kramdown.gettalong.org/) converter and some custom extensions, including support for embedded \PolyTeX, a subset of the powerful \LaTeX\ typesetting system.[^pronunciation] For more information, see [*The Softcover Book*](http://manual.softcover.io/book). To learn how to easily publish (and optionally sell) documents produced with Softcover, visit [Softcover.io](http://softcover.io/).
5
5
 
6
6
  This is the *second* paragraph, showing how to emphasize text.[^sample-footnote] You can also make text **bold** or _emphasize a second way_. Via embedded \PolyTeX, Softcover also supports colored text, such as \coloredtext{red}{red}, \coloredtext{CornflowerBlue}{cornflower blue}, and \coloredtexthtml{E8AB3A}{arbitrary HTML colors}.
7
7
 
@@ -73,13 +73,13 @@ This is the second section.
73
73
 
74
74
  Softcover supports the inclusion of images, like this:
75
75
 
76
- ![Some dude.](images/2011_michael_hartl.png)
76
+ ![Some dude.](images/01_michael_hartl_headshot.jpg)
77
77
 
78
78
  Using \LaTeX\ labels, you can also include a caption (as in Figure~\ref{fig:captioned_image}) or just a figure number (as in Figure~\ref{fig:figure_number}).
79
79
 
80
- ![Some dude.\label{fig:captioned_image}](images/2011_michael_hartl.png)
80
+ ![Some dude.\label{fig:captioned_image}](images/01_michael_hartl_headshot.jpg)
81
81
 
82
- ![\label{fig:figure_number}](images/2011_michael_hartl.png)
82
+ ![\label{fig:figure_number}](images/01_michael_hartl_headshot.jpg)
83
83
 
84
84
  ### Tables
85
85
 
@@ -87,20 +87,20 @@ Softcover supports \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_
87
87
 
88
88
  You can include raw graphics like this:
89
89
 
90
- \includegraphics{images/2011_michael_hartl.png}
90
+ \includegraphics{images/01_michael_hartl_headshot.jpg}
91
91
 
92
92
  \noindent You can also include centered images:
93
93
 
94
- \image{images/2011_michael_hartl.png}
94
+ \image{images/01_michael_hartl_headshot.jpg}
95
95
 
96
96
  \noindent Or include one with a box, like so:
97
97
 
98
- \imagebox{images/2011_michael_hartl.png}
98
+ \imagebox{images/01_michael_hartl_headshot.jpg}
99
99
 
100
100
  To turn an image into a figure, use the \kode{figure} environment (Figure~\ref{fig:the_dude}).
101
101
 
102
102
  \begin{figure}
103
- \imagebox{images/2011_michael_hartl.png}
103
+ \imagebox{images/01_michael_hartl_headshot.jpg}
104
104
  \caption{Some \href{http://michaelhartl.com/}{dude}.\label{fig:the_dude}}
105
105
  \end{figure}
106
106
 
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/spec/app_spec.rb CHANGED
@@ -13,7 +13,7 @@ describe Softcover::App do
13
13
  generate_book
14
14
  Softcover::Builders::Html.new.build!
15
15
  end
16
- # after(:all) { remove_book }
16
+ after(:all) { remove_book }
17
17
 
18
18
  before { chdir_to_book }
19
19
 
@@ -77,8 +77,8 @@ describe Softcover::App do
77
77
  end
78
78
 
79
79
  it 'GET image within book' do
80
- get '/images/2011_michael_hartl.png'
81
- expect_server_response_of_type 'image/png'
80
+ get '/images/01_michael_hartl_headshot.jpg'
81
+ expect_server_response_of_type 'image/jpeg'
82
82
  end
83
83
 
84
84
  def expect_server_response_of_type(type)
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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -1006,7 +1006,7 @@ files:
1006
1006
  - lib/softcover/template/html/stylesheets/custom.css
1007
1007
  - lib/softcover/template/html/stylesheets/softcover.css
1008
1008
  - lib/softcover/template/images/.gitkeep
1009
- - lib/softcover/template/images/2011_michael_hartl.png
1009
+ - lib/softcover/template/images/01_michael_hartl_headshot.jpg
1010
1010
  - lib/softcover/template/images/cover-web.png
1011
1011
  - lib/softcover/template/images/cover.jpg
1012
1012
  - lib/softcover/template/images/cover.pdf