jekyll-codesandbox 0.1.0 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/code_sandbox.rb +17 -0
- data/lib/jekyll-codesandbox.rb +2 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8389c435572f89fa6d48a3afce12e0079c03f42adbc2da1dd1037450dea06c82
|
4
|
+
data.tar.gz: 8586739e9193ed5231fb8a970be6dd0c900c3a975f71a335729f395dee1506a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7fc22aef70e8a3cd12a20158d44e4a00294015a6d799bc2c3608adebccf4dc231293dd14d0e02d8c9504c04a84048a4f2edc29a6ab50262a85a3ffb9afa35a0
|
7
|
+
data.tar.gz: 95a7c7773c0f90eeef540cb2613d9cfee34ce8dad0e5b94dc1467a43e3875744302c7c21b73b84f3eaabc8cfb4a856bc03c668ba5f1aff3793f03cd42a2528a2
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Jekyll
|
2
|
+
class CodeSandbox < Liquid::Tag
|
3
|
+
def initialize(tag_name, link, tokens)
|
4
|
+
super
|
5
|
+
@link = link
|
6
|
+
end
|
7
|
+
|
8
|
+
def render(context)
|
9
|
+
"<iframe src=\"#{@link}?fontsize=14&hidenavigation=1&theme=dark\"
|
10
|
+
style=\"width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;\"
|
11
|
+
title=\"#{@link}\">
|
12
|
+
</iframe>"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
Liquid::Template.register_tag('codesandbox', Jekyll::CodeSandbox)
|
data/lib/jekyll-codesandbox.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require 'jekyll
|
1
|
+
require 'jekyll'
|
2
|
+
require_relative 'jekyll/code_sandbox'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-codesandbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nelio Carneiro
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-11-05 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.3'
|
13
27
|
description: A Jekyll plugin to embed CodeSandbox projects
|
14
28
|
email:
|
15
29
|
- email@nelio.me
|
@@ -18,6 +32,7 @@ extensions: []
|
|
18
32
|
extra_rdoc_files: []
|
19
33
|
files:
|
20
34
|
- lib/jekyll-codesandbox.rb
|
35
|
+
- lib/jekyll/code_sandbox.rb
|
21
36
|
homepage: https://github.com/neliojrr/jekyll-codesandbox
|
22
37
|
licenses:
|
23
38
|
- MIT
|