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 +4 -4
- data/lib/softcover/template/chapters/a_chapter.md +4 -4
- data/lib/softcover/template/chapters/a_chapter.tex +4 -4
- data/lib/softcover/template/images/01_michael_hartl_headshot.jpg +0 -0
- data/lib/softcover/version.rb +1 -1
- data/spec/app_spec.rb +3 -3
- metadata +2 -2
- data/lib/softcover/template/images/2011_michael_hartl.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac52213a9efd12b1bdb2fb63c15e214d21ebe6f
|
4
|
+
data.tar.gz: 32bc066d29b012a8141e04c07522e39d90792d82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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/
|
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/
|
80
|
+
![Some dude.\label{fig:captioned_image}](images/01_michael_hartl_headshot.jpg)
|
81
81
|
|
82
|
-
![\label{fig:figure_number}](images/
|
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/
|
90
|
+
\includegraphics{images/01_michael_hartl_headshot.jpg}
|
91
91
|
|
92
92
|
\noindent You can also include centered images:
|
93
93
|
|
94
|
-
\image{images/
|
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/
|
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/
|
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
|
|
Binary file
|
data/lib/softcover/version.rb
CHANGED
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
|
-
|
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/
|
81
|
-
expect_server_response_of_type 'image/
|
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.
|
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/
|
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
|
Binary file
|