tufte 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +1 -0
- data/Gemfile +3 -0
- data/LICENSE +67 -0
- data/README.md +50 -0
- data/Rakefile +9 -0
- data/TODO +2 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/exe/tufte +4 -0
- data/lib/tufte/binding.rb +25 -0
- data/lib/tufte/cli.rb +29 -0
- data/lib/tufte/helpers.rb +23 -0
- data/lib/tufte/markdown.rb +24 -0
- data/lib/tufte/post.rb +42 -0
- data/lib/tufte/version.rb +3 -0
- data/lib/tufte.rb +45 -0
- data/scaffold/config.ru +23 -0
- data/scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot +0 -0
- data/scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg +243 -0
- data/scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf +0 -0
- data/scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff +0 -0
- data/scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot +0 -0
- data/scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg +244 -0
- data/scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf +0 -0
- data/scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff +0 -0
- data/scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot +0 -0
- data/scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg +244 -0
- data/scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf +0 -0
- data/scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff +0 -0
- data/scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot +0 -0
- data/scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg +244 -0
- data/scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf +0 -0
- data/scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff +0 -0
- data/scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.eot +0 -0
- data/scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg +243 -0
- data/scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.ttf +0 -0
- data/scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.woff +0 -0
- data/scaffold/css/style.css +91 -0
- data/scaffold/css/tufte.css +274 -0
- data/scaffold/posts/syntax-highlight-test.yml +35 -0
- data/scaffold/templates/index.html.erb +31 -0
- data/scaffold/templates/layout.html.erb +21 -0
- data/scaffold/templates/post.html.erb +12 -0
- data/tufte.gemspec +31 -0
- metadata +176 -0
@@ -0,0 +1,274 @@
|
|
1
|
+
/* Import ET Book styles
|
2
|
+
adapted from https://github.com/edwardtufte/et-book/blob/gh-pages/et-book.css */
|
3
|
+
|
4
|
+
@charset "UTF-8";
|
5
|
+
|
6
|
+
@font-face {
|
7
|
+
font-family: "et-book";
|
8
|
+
src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
|
9
|
+
src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg");
|
10
|
+
font-weight: normal;
|
11
|
+
font-style: normal
|
12
|
+
}
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: "et-book";
|
16
|
+
src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot");
|
17
|
+
src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg");
|
18
|
+
font-weight: normal;
|
19
|
+
font-style: italic
|
20
|
+
}
|
21
|
+
|
22
|
+
@font-face {
|
23
|
+
font-family: "et-book";
|
24
|
+
src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot");
|
25
|
+
src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg");
|
26
|
+
font-weight: bold;
|
27
|
+
font-style: normal
|
28
|
+
}
|
29
|
+
|
30
|
+
@font-face {
|
31
|
+
font-family: "et-book-roman-old-style";
|
32
|
+
src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot");
|
33
|
+
src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg");
|
34
|
+
font-weight: normal;
|
35
|
+
font-style: normal;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Tufte CSS styles */
|
39
|
+
html { font-size: 15px; }
|
40
|
+
|
41
|
+
body { width: 87.5%;
|
42
|
+
margin-left: auto;
|
43
|
+
margin-right: auto;
|
44
|
+
padding-left: 12.5%;
|
45
|
+
font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
|
46
|
+
background-color: #fffff8;
|
47
|
+
color: #111;
|
48
|
+
max-width: 1400px;
|
49
|
+
counter-reset: sidenote-counter; }
|
50
|
+
|
51
|
+
h1 { font-weight: 400;
|
52
|
+
margin-top: 4rem;
|
53
|
+
margin-bottom: 1.5rem;
|
54
|
+
font-size: 3.2rem;
|
55
|
+
line-height: 1; }
|
56
|
+
|
57
|
+
h2 { font-style: italic;
|
58
|
+
font-weight: 400;
|
59
|
+
margin-top: 2.1rem;
|
60
|
+
margin-bottom: 0;
|
61
|
+
font-size: 2.2rem;
|
62
|
+
line-height: 1; }
|
63
|
+
|
64
|
+
h3 { font-style: italic;
|
65
|
+
font-weight: 400;
|
66
|
+
font-size: 1.7rem;
|
67
|
+
margin-top: 2rem;
|
68
|
+
margin-bottom: 0;
|
69
|
+
line-height: 1; }
|
70
|
+
|
71
|
+
p.subtitle { font-style: italic;
|
72
|
+
margin-top: 1rem;
|
73
|
+
margin-bottom: 1rem;
|
74
|
+
font-size: 1.8rem;
|
75
|
+
display: block;
|
76
|
+
line-height: 1; }
|
77
|
+
|
78
|
+
.numeral { font-family: et-book-roman-old-style; }
|
79
|
+
|
80
|
+
.danger { color: red; }
|
81
|
+
|
82
|
+
article { position: relative;
|
83
|
+
padding: 5rem 0rem; }
|
84
|
+
|
85
|
+
section { padding-top: 1rem;
|
86
|
+
padding-bottom: 1rem; }
|
87
|
+
|
88
|
+
p, ol, ul { font-size: 1.4rem; }
|
89
|
+
|
90
|
+
p { line-height: 2rem;
|
91
|
+
margin-top: 1.4rem;
|
92
|
+
margin-bottom: 1.4rem;
|
93
|
+
padding-right: 0;
|
94
|
+
vertical-align: baseline; }
|
95
|
+
|
96
|
+
/* Chapter Epigraphs */
|
97
|
+
div.epigraph { margin: 5em 0; }
|
98
|
+
|
99
|
+
div.epigraph > blockquote { margin-top: 3em;
|
100
|
+
margin-bottom: 3em; }
|
101
|
+
|
102
|
+
div.epigraph > blockquote, div.epigraph > blockquote > p { font-style: italic; }
|
103
|
+
|
104
|
+
div.epigraph > blockquote > footer { font-style: normal; }
|
105
|
+
|
106
|
+
div.epigraph > blockquote > footer > cite { font-style: italic; }
|
107
|
+
|
108
|
+
/* end chapter epigraphs styles */
|
109
|
+
|
110
|
+
blockquote { font-size: 1.4rem; }
|
111
|
+
|
112
|
+
blockquote p { width: 50%; }
|
113
|
+
|
114
|
+
blockquote footer { width: 50%;
|
115
|
+
font-size: 1.1rem;
|
116
|
+
text-align: right; }
|
117
|
+
|
118
|
+
ol, ul { width: 45%;
|
119
|
+
-webkit-padding-start: 5%;
|
120
|
+
-webkit-padding-end: 5%; }
|
121
|
+
|
122
|
+
li { padding: 0.5rem 0; }
|
123
|
+
|
124
|
+
figure { padding: 0;
|
125
|
+
border: 0;
|
126
|
+
font-size: 100%;
|
127
|
+
font: inherit;
|
128
|
+
vertical-align: baseline;
|
129
|
+
max-width: 55%;
|
130
|
+
-webkit-margin-start: 0;
|
131
|
+
-webkit-margin-end: 0;
|
132
|
+
margin: 0 0 3em 0; }
|
133
|
+
|
134
|
+
figcaption { float: right;
|
135
|
+
clear: right;
|
136
|
+
margin-right: -48%;
|
137
|
+
margin-top: 0;
|
138
|
+
margin-bottom: 0;
|
139
|
+
font-size: 1.1rem;
|
140
|
+
line-height: 1.6;
|
141
|
+
vertical-align: baseline;
|
142
|
+
position: relative;
|
143
|
+
max-width: 40%; }
|
144
|
+
|
145
|
+
figure.fullwidth figcaption { margin-right: 24%; }
|
146
|
+
|
147
|
+
/* Links: replicate underline that clears descenders */
|
148
|
+
a:link, a:visited { color: inherit; }
|
149
|
+
|
150
|
+
a:link { text-decoration: none;
|
151
|
+
background: -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#333, #333);
|
152
|
+
background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#333, #333);
|
153
|
+
-webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
|
154
|
+
-moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
|
155
|
+
background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
|
156
|
+
background-repeat: no-repeat, no-repeat, repeat-x;
|
157
|
+
text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8;
|
158
|
+
background-position: 0% 93%, 100% 93%, 0% 93%; }
|
159
|
+
|
160
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) { a:link { background-position-y: 87%, 87%, 87%; } }
|
161
|
+
|
162
|
+
a:link::selection { text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
|
163
|
+
background: #b4d5fe; }
|
164
|
+
|
165
|
+
a:link::-moz-selection { text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
|
166
|
+
background: #b4d5fe; }
|
167
|
+
|
168
|
+
/* Sidenotes, margin notes, figures, captions */
|
169
|
+
img { max-width: 100%; }
|
170
|
+
|
171
|
+
.sidenote, .marginnote { float: right;
|
172
|
+
clear: right;
|
173
|
+
margin-right: -60%;
|
174
|
+
width: 50%;
|
175
|
+
margin-top: 0;
|
176
|
+
margin-bottom: 0;
|
177
|
+
font-size: 1.1rem;
|
178
|
+
line-height: 1.3;
|
179
|
+
vertical-align: baseline;
|
180
|
+
position: relative; }
|
181
|
+
|
182
|
+
.table-caption { float:right;
|
183
|
+
clear:right;
|
184
|
+
margin-right: -60%;
|
185
|
+
width: 50%;
|
186
|
+
margin-top: 0;
|
187
|
+
margin-bottom: 0;
|
188
|
+
font-size: 1.0rem;
|
189
|
+
line-height: 1.6; }
|
190
|
+
|
191
|
+
.sidenote-number { counter-increment: sidenote-counter; }
|
192
|
+
|
193
|
+
.sidenote-number:after, .sidenote:before { content: counter(sidenote-counter) " ";
|
194
|
+
font-family: et-book-roman-old-style;
|
195
|
+
position: relative;
|
196
|
+
vertical-align: baseline; }
|
197
|
+
|
198
|
+
.sidenote-number:after { content: counter(sidenote-counter);
|
199
|
+
font-size: 1rem;
|
200
|
+
top: -0.5rem;
|
201
|
+
left: 0.1rem; }
|
202
|
+
|
203
|
+
.sidenote:before { content: counter(sidenote-counter) " ";
|
204
|
+
top: -0.5rem; }
|
205
|
+
|
206
|
+
p, footer, table, div.table-wrapper-small, div.supertable-wrapper > p, div.booktabs-wrapper { width: 55%; }
|
207
|
+
|
208
|
+
div.fullwidth, table.fullwidth { width: 100%; }
|
209
|
+
|
210
|
+
div.table-wrapper { overflow-x: auto;
|
211
|
+
font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif; }
|
212
|
+
|
213
|
+
@media screen and (max-width: 760px) { p, footer { width: 90%; }
|
214
|
+
pre.code { width: 87.5%; }
|
215
|
+
ul { width: 85%; }
|
216
|
+
figure { max-width: 90%; }
|
217
|
+
figcaption, figure.fullwidth figcaption { margin-right: 0%;
|
218
|
+
max-width: none; }
|
219
|
+
blockquote p, blockquote footer { width: 90%; }}
|
220
|
+
|
221
|
+
.sans { font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
|
222
|
+
letter-spacing: .03em; }
|
223
|
+
|
224
|
+
.code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
225
|
+
font-size: 1.125rem;
|
226
|
+
line-height: 1.6; }
|
227
|
+
|
228
|
+
h1 .code, h2 .code, h3 .code { font-size: 0.80em; }
|
229
|
+
|
230
|
+
.marginnote .code, .sidenote .code { font-size: 1rem; }
|
231
|
+
|
232
|
+
pre.code { width: 52.5%;
|
233
|
+
padding-left: 2.5%;
|
234
|
+
overflow-x: auto; }
|
235
|
+
|
236
|
+
.fullwidth { max-width: 90%;
|
237
|
+
clear:both; }
|
238
|
+
|
239
|
+
span.newthought { font-variant: small-caps;
|
240
|
+
font-size: 1.2em; }
|
241
|
+
|
242
|
+
input.margin-toggle { display: none; }
|
243
|
+
|
244
|
+
label.sidenote-number { display: inline; }
|
245
|
+
|
246
|
+
label.margin-toggle:not(.sidenote-number) { display: none; }
|
247
|
+
|
248
|
+
@media (max-width: 760px) { label.margin-toggle:not(.sidenote-number) { display: inline; }
|
249
|
+
.sidenote, .marginnote { display: none; }
|
250
|
+
.margin-toggle:checked + .sidenote,
|
251
|
+
.margin-toggle:checked + .marginnote { display: block;
|
252
|
+
float: left;
|
253
|
+
left: 1rem;
|
254
|
+
clear: both;
|
255
|
+
width: 95%;
|
256
|
+
margin: 1rem 2.5%;
|
257
|
+
vertical-align: baseline;
|
258
|
+
position: relative; }
|
259
|
+
label { cursor: pointer; }
|
260
|
+
pre.code { width: 90%;
|
261
|
+
padding: 0; }
|
262
|
+
.table-caption { display: block;
|
263
|
+
float: right;
|
264
|
+
clear: both;
|
265
|
+
width: 98%;
|
266
|
+
margin-top: 1rem;
|
267
|
+
margin-bottom: 0.5rem;
|
268
|
+
margin-left: 1%;
|
269
|
+
margin-right: 1%;
|
270
|
+
vertical-align: baseline;
|
271
|
+
position: relative; }
|
272
|
+
div.table-wrapper, table, table.booktabs { width: 85%; }
|
273
|
+
div.table-wrapper { border-right: 1px solid #efefef; }
|
274
|
+
img { width: 100%; } }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
title: Syntax Highlight Test
|
3
|
+
date: 2016-05-15
|
4
|
+
---
|
5
|
+
You can include snippets of code in your posts.
|
6
|
+
|
7
|
+
Here's some Ruby:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
class Foo
|
11
|
+
def bar(arg)
|
12
|
+
puts "hello #{arg}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
Here's some Elixir:
|
18
|
+
|
19
|
+
```elixir
|
20
|
+
defmodule Foo do
|
21
|
+
def bar(arg) do
|
22
|
+
IO.puts "hello #{arg}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
```
|
26
|
+
|
27
|
+
Here's some Rust:
|
28
|
+
|
29
|
+
```rust
|
30
|
+
mod foo {
|
31
|
+
pub fn bar(arg: String) {
|
32
|
+
println!("hello {}", arg);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<article>
|
2
|
+
<h1>
|
3
|
+
Title
|
4
|
+
</h1>
|
5
|
+
<p class="subtitle">
|
6
|
+
Subtitle
|
7
|
+
</p>
|
8
|
+
|
9
|
+
<section>
|
10
|
+
<p>
|
11
|
+
This is some text. This is some text.<%= sidenote("my-sidenote", "This is a sidenote!") %> This is some text. This is some
|
12
|
+
text. This is some text. This is some text. This is some text.
|
13
|
+
</p>
|
14
|
+
<p>
|
15
|
+
This is some more text. This is some more text.
|
16
|
+
<%= marginnote("my-margin-note", "This is a margin note! No number.") %>
|
17
|
+
This is some more text. This is some more text.
|
18
|
+
</section>
|
19
|
+
|
20
|
+
<section>
|
21
|
+
<h2>Blog posts</h2>
|
22
|
+
<ul>
|
23
|
+
<% @posts.sort_by(&:date).reverse.each do |post| %>
|
24
|
+
<li>
|
25
|
+
<%= post.date %> —
|
26
|
+
<a href="<%= post.output_directory %>"><%= post.title %></a>
|
27
|
+
</li>
|
28
|
+
<% end %>
|
29
|
+
</ul>
|
30
|
+
</section>
|
31
|
+
</article>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<title>My Blog</title>
|
6
|
+
<link rel="stylesheet" href="/css/tufte.css"/>
|
7
|
+
<link rel="stylesheet" href="/css/style.css"/>
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<%= @content %>
|
13
|
+
<footer>
|
14
|
+
<p>
|
15
|
+
Site generated with
|
16
|
+
<a href="https://github.com/mxhold/tufte-blog">tufte-blog</a>.
|
17
|
+
</p>
|
18
|
+
</footer>
|
19
|
+
</body>
|
20
|
+
|
21
|
+
</html>
|
data/tufte.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tufte/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tufte"
|
8
|
+
spec.version = Tufte::VERSION
|
9
|
+
spec.authors = ["Max Holder"]
|
10
|
+
spec.email = ["mxhold@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "Blog/static site generator based on tufte-css"
|
13
|
+
spec.homepage = "https://github.com/mxhold/tufte"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
24
|
+
|
25
|
+
# markdown rendering
|
26
|
+
spec.add_runtime_dependency "redcarpet", "~> 3.3"
|
27
|
+
# syntax highlighting
|
28
|
+
spec.add_runtime_dependency "rouge", "~> 1.10"
|
29
|
+
# development server
|
30
|
+
spec.add_runtime_dependency "rack", "~> 1.6"
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tufte
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Max Holder
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redcarpet
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.3'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rouge
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.10'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.10'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rack
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- mxhold@gmail.com
|
100
|
+
executables:
|
101
|
+
- tufte
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".ruby-version"
|
108
|
+
- ".travis.yml"
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- TODO
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- exe/tufte
|
117
|
+
- lib/tufte.rb
|
118
|
+
- lib/tufte/binding.rb
|
119
|
+
- lib/tufte/cli.rb
|
120
|
+
- lib/tufte/helpers.rb
|
121
|
+
- lib/tufte/markdown.rb
|
122
|
+
- lib/tufte/post.rb
|
123
|
+
- lib/tufte/version.rb
|
124
|
+
- scaffold/config.ru
|
125
|
+
- scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot
|
126
|
+
- scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg
|
127
|
+
- scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf
|
128
|
+
- scaffold/css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff
|
129
|
+
- scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot
|
130
|
+
- scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg
|
131
|
+
- scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf
|
132
|
+
- scaffold/css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff
|
133
|
+
- scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot
|
134
|
+
- scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg
|
135
|
+
- scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf
|
136
|
+
- scaffold/css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff
|
137
|
+
- scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot
|
138
|
+
- scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg
|
139
|
+
- scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf
|
140
|
+
- scaffold/css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff
|
141
|
+
- scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.eot
|
142
|
+
- scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg
|
143
|
+
- scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.ttf
|
144
|
+
- scaffold/css/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.woff
|
145
|
+
- scaffold/css/style.css
|
146
|
+
- scaffold/css/tufte.css
|
147
|
+
- scaffold/posts/syntax-highlight-test.yml
|
148
|
+
- scaffold/templates/index.html.erb
|
149
|
+
- scaffold/templates/layout.html.erb
|
150
|
+
- scaffold/templates/post.html.erb
|
151
|
+
- tufte.gemspec
|
152
|
+
homepage: https://github.com/mxhold/tufte
|
153
|
+
licenses:
|
154
|
+
- MIT
|
155
|
+
metadata: {}
|
156
|
+
post_install_message:
|
157
|
+
rdoc_options: []
|
158
|
+
require_paths:
|
159
|
+
- lib
|
160
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
requirements: []
|
171
|
+
rubyforge_project:
|
172
|
+
rubygems_version: 2.5.1
|
173
|
+
signing_key:
|
174
|
+
specification_version: 4
|
175
|
+
summary: Blog/static site generator based on tufte-css
|
176
|
+
test_files: []
|