jekyll_example_embed 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/jekyll_example_embed.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f385cfa11222db1efcfca1351889742f5b87b4039c1cb0d964caf2e10aaceaa3
|
4
|
+
data.tar.gz: cbc3bb31a2ed683d9581d225b9e85fc721da3ec6626dcfe22f9cab83a8e66ee5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae90980f80ef73cb674d631d3463f0236571e6e1d8273d9c9b6b869ed4c8d2dd51287b61151b0ad6ab688025d6b391a222905feade1faa34183444adeee5d682
|
7
|
+
data.tar.gz: 48741d99078bef6d4b4d85f378e6c27d7d79f0fe2c6f8f78b547bcb6e45f9e0770a742a3a829f988353699d52adb5c248b7dee88555591d37a63b5f46ba3b244
|
data/lib/jekyll_example_embed.rb
CHANGED
@@ -32,10 +32,12 @@ module Jekyll
|
|
32
32
|
|
33
33
|
icon = Liquid::Template.parse('{% octicon link-external %}').render(context)
|
34
34
|
|
35
|
-
[ "
|
35
|
+
[ '<section class="example-embed">',
|
36
|
+
"<h4>#{name}</h4>",
|
36
37
|
'<h5>Source</h5>',
|
37
38
|
highlight,
|
38
|
-
%{<h5><a href="#{document.url}" target="_new">View Result #{icon}</a></h5>}
|
39
|
+
%{<h5><a href="#{document.url}" target="_new">View Result #{icon}</a></h5>},
|
40
|
+
'</section>'
|
39
41
|
].join("\n")
|
40
42
|
end
|
41
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_example_embed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sonny Michaud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.6
|
124
|
+
rubygems_version: 2.7.6
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Embed examples in Jekyll
|