gibier 0.8.15 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gibier/renderer.rb +13 -1
- data/lib/gibier/slide_loader.rb +1 -1
- data/lib/gibier/version.rb +1 -1
- data/template/project/Gemfile +6 -5
- data/template/project/assets/css/application.css +54 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4777ac4484bcf69c0c5b3f87241422a324ecf21695e14564b9c59b864b31d805
|
4
|
+
data.tar.gz: '08dd421b5247b994ca16fcb27793ea145f6f992076ea9a28ae18be3e46abc481'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e63749336e2ec8e5785047a46a7352494101c6e42f4db44db577283e32d8cc1197650a7e4a4d0bd48497648506df69abdec8f4497057772995c8a92e44100a
|
7
|
+
data.tar.gz: 3dc617ae4ca3d76316041b2dd18f569d49e9549f21d5ce42e943bbafb2f48062225f7b8921380e91d8e5d75b989090ded1dd777b9ae23a5a280bb9da1d8d37d4
|
data/lib/gibier/renderer.rb
CHANGED
@@ -243,7 +243,19 @@ EOD
|
|
243
243
|
end
|
244
244
|
|
245
245
|
def table(header, body)
|
246
|
-
|
246
|
+
code = <<-CODE
|
247
|
+
children << table(nil,
|
248
|
+
tr(nil,
|
249
|
+
*[
|
250
|
+
#{header.split("\t").map{|c| "th(nil, #{c.expand_tag})"}.join(",\n")}
|
251
|
+
]
|
252
|
+
),
|
253
|
+
*[
|
254
|
+
#{body.split("\n").map{|row| "tr(nil, [#{row.split("\t").map{|c| "td(nil, #{c.expand_tag})"}.join(", ")}])" }.join(",\n")}
|
255
|
+
]
|
256
|
+
)
|
257
|
+
CODE
|
258
|
+
code
|
247
259
|
end
|
248
260
|
|
249
261
|
def table_row(content)
|
data/lib/gibier/slide_loader.rb
CHANGED
@@ -33,7 +33,7 @@ module Gibier
|
|
33
33
|
def self.load_slide(name)
|
34
34
|
File.open("#{src_path(name)}/pages.rb", "w+") do |f|
|
35
35
|
data = File.read("data/#{name}/slide.md")
|
36
|
-
markdown = Redcarpet::Markdown.new(Gibier::Renderer.create(name), autolink: true, fenced_code_blocks: true)
|
36
|
+
markdown = Redcarpet::Markdown.new(Gibier::Renderer.create(name), autolink: true, fenced_code_blocks: true, tables: true)
|
37
37
|
f.write markdown.render(data)
|
38
38
|
end
|
39
39
|
|
data/lib/gibier/version.rb
CHANGED
data/template/project/Gemfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gem
|
4
|
-
gem
|
5
|
-
gem
|
6
|
-
gem
|
7
|
-
gem
|
3
|
+
gem "opal", "~> 0.11"
|
4
|
+
gem "gibier", "0.8.16"
|
5
|
+
gem "opal-router", github: "adambeynon/opal-router"
|
6
|
+
gem "opal-haml", github: "opal/opal-haml"
|
7
|
+
gem "opal-websocket", github: "youchan/opal-websocket"
|
8
|
+
gem "hyalite"
|
8
9
|
|
@@ -153,6 +153,12 @@ body {
|
|
153
153
|
margin: 0;
|
154
154
|
}
|
155
155
|
|
156
|
+
.page p.small {
|
157
|
+
text-align: left;
|
158
|
+
font-size: 1.6rem;
|
159
|
+
margin: 0;
|
160
|
+
}
|
161
|
+
|
156
162
|
.page p.large {
|
157
163
|
text-align: center;
|
158
164
|
font-size: 1.6em;
|
@@ -169,7 +175,7 @@ body {
|
|
169
175
|
font-size: 1.6em;
|
170
176
|
font-weight: bold;
|
171
177
|
margin: 0;
|
172
|
-
margin-top:
|
178
|
+
margin-top: 1rem;
|
173
179
|
}
|
174
180
|
|
175
181
|
.page p.middle img {
|
@@ -209,6 +215,27 @@ body {
|
|
209
215
|
width: 20em;
|
210
216
|
}
|
211
217
|
|
218
|
+
.page p.portlait-right {
|
219
|
+
text-align: right;
|
220
|
+
font-size: 1.6em;
|
221
|
+
font-weight: bold;
|
222
|
+
margin: 0;
|
223
|
+
}
|
224
|
+
|
225
|
+
.page p.portlait-right img {
|
226
|
+
width: 30%;
|
227
|
+
margin-top: 12%;
|
228
|
+
float: right;
|
229
|
+
}
|
230
|
+
|
231
|
+
.page .left ~ * {
|
232
|
+
position: relative;
|
233
|
+
float: left;
|
234
|
+
margin-top: 12%;
|
235
|
+
margin-left: 2em;
|
236
|
+
width: 60%;
|
237
|
+
}
|
238
|
+
|
212
239
|
.page p.w90 {
|
213
240
|
text-align: center;
|
214
241
|
font-size: 1.6em;
|
@@ -225,7 +252,6 @@ body {
|
|
225
252
|
font-size: 1.6em;
|
226
253
|
font-weight: bold;
|
227
254
|
margin: 0;
|
228
|
-
margin-top: 4em;
|
229
255
|
}
|
230
256
|
|
231
257
|
.page p.w70 img {
|
@@ -237,13 +263,23 @@ body {
|
|
237
263
|
font-size: 1.6em;
|
238
264
|
font-weight: bold;
|
239
265
|
margin: 0;
|
240
|
-
margin-top: 4em;
|
241
266
|
}
|
242
267
|
|
243
268
|
.page p.w50 img {
|
244
269
|
width: 50%;
|
245
270
|
}
|
246
271
|
|
272
|
+
.page p.w30 {
|
273
|
+
text-align: center;
|
274
|
+
font-size: 1.6em;
|
275
|
+
font-weight: bold;
|
276
|
+
margin: 0;
|
277
|
+
}
|
278
|
+
|
279
|
+
.page p.w30 img {
|
280
|
+
width: 30%;
|
281
|
+
}
|
282
|
+
|
247
283
|
h1 {
|
248
284
|
font-size: 1.6em;
|
249
285
|
text-align: center;
|
@@ -362,3 +398,18 @@ a:active {
|
|
362
398
|
.duration {
|
363
399
|
display: none;
|
364
400
|
}
|
401
|
+
|
402
|
+
table{
|
403
|
+
border-collapse:collapse;
|
404
|
+
margin:0 auto;
|
405
|
+
}
|
406
|
+
td,th{
|
407
|
+
padding:10px;
|
408
|
+
}
|
409
|
+
th{
|
410
|
+
color:#fff;
|
411
|
+
background:#005ab3;
|
412
|
+
}
|
413
|
+
table tr:nth-child(odd){
|
414
|
+
background:#e6f2ff;
|
415
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youchan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|