jektify 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";$(document).ready(function(){$(".jektify__button").click(function(){$(this).parent().next().slideToggle(),$(this).removeClass("jektify__button--closed"),$(this).toggleClass("jektify__button--open")})});
1
+ jQuery(function(t){t(".jektify__button").on("click",function(){t(this).parent().next().slideToggle(),t(this).removeClass("jektify__button--closed").toggleClass("jektify__button--open")})});
@@ -1,7 +1,6 @@
1
- @charset "UTF-8";
2
-
3
1
  /* Jektify
4
2
  ========================================================*/
3
+ @use "sass:color";
5
4
 
6
5
  /* Import fonts by Google Fonts - https://fonts.google.com/ */
7
6
  @import url('https://fonts.googleapis.com/css?family=Lato:300,400,700');
@@ -77,6 +76,7 @@
77
76
  -ms-user-select: none;
78
77
  user-select: none;
79
78
  line-height: 2.2rem !important;
79
+ text-align: left;
80
80
 
81
81
  /* .jektify__header--dark */
82
82
  &--dark{
@@ -227,12 +227,6 @@
227
227
  -webkit-margin-start: 0px;
228
228
  -moz-margin-start: 0px;
229
229
  border-top: solid 1px rgba(0, 0, 0, 0.3);
230
-
231
- /* .jektify__body--dark */
232
- &--dark{ }
233
-
234
- /* .jektify__body--white */
235
- &--white{ }
236
230
  }
237
231
 
238
232
  /* .jektify__user */
@@ -250,10 +244,7 @@
250
244
  line-height: 2.2rem !important;
251
245
  margin: 20px 0px 20px 0px;
252
246
 
253
- /* .jektify__user--dark */
254
- &--dark{ }
255
-
256
- /* .jektify__user--white */
247
+ /* .jektify__user--white */
257
248
  &--white{
258
249
  color: #282828;
259
250
  }
@@ -271,11 +262,6 @@
271
262
  &:hover{
272
263
  text-decoration: none;
273
264
  }
274
- /* .jektify__user-link--dark */
275
- &--dark{ }
276
-
277
- /* .jektify__user-link--white */
278
- &--white{ }
279
265
  }
280
266
 
281
267
  /* .jektify__user-text */
@@ -343,7 +329,7 @@
343
329
  border-radius: 10px;
344
330
  padding: 8px;
345
331
  margin: 15px;
346
- border: 1px solid lighten(#1ed760, 1);
332
+ border: 1px solid color.adjust(#1ed760, $lightness: 1%);
347
333
 
348
334
  /* .jektify__tracklist--dark */
349
335
  &--dark{
@@ -353,7 +339,7 @@
353
339
  /* .jektify__tracklist--white */
354
340
  &--white{
355
341
  background-color: $jektify__background-color--white;
356
- border: 1px solid lighten(#282828, 1);
342
+ border: 1px solid color.adjust(#282828, $lightness: 1%);
357
343
  }
358
344
 
359
345
  }
data/bin/setup CHANGED
@@ -3,6 +3,9 @@ set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
  set -vx
5
5
 
6
+ npm install
6
7
  bundle install
7
8
 
8
9
  # Do any other automated setup that you need to do here
10
+ npm run build
11
+ bundle exec rake build
data/bin/tests CHANGED
@@ -1,85 +1,15 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- GEM__ROOT=$PWD
4
- JEKYL__PROJECT="project"
5
- APP__NAME="jektify"
6
- APP__VERSION="1.0.6"
3
+ ROOT=$PWD
4
+ GEMFILE=${ROOT}/example/Gemfile
7
5
 
8
- function _clean(){
9
- cd $GEM__ROOT
10
- rm -rf "tests/vm/$JEKYL__PROJECT"
11
- }
6
+ ## Adding PATH jektify
7
+ sed -i "s|^ gem \"jektify\", path: .*| gem \"jektify\", path: \"$PWD\"|g" "$GEMFILE"
12
8
 
13
- # Generated Jektify gem
14
- bundle exec rake build
15
- echo "Jektify gem created!"
9
+ ### Build example Jekyll
10
+ bundle install --gemfile="$GEMFILE"
16
11
 
17
- # Generated Jektify gem
18
- bundle exec rake install
19
- echo "${APP__NAME^^} gem installed!"
12
+ ### Build project Jekyll
13
+ BUNDLE_GEMFILE="$GEMFILE" bundle exec jekyll b -s ${ROOT}/example -d ${ROOT}/example/_site
20
14
 
21
- # Clean cache before created
22
- _clean
23
-
24
- # Created project Jekyll
25
- mkdir -p tests/vm
26
- bundle exec jekyll new tests/vm/$JEKYL__PROJECT; cd $_
27
-
28
- # Add dependency in Gemfile for Jekyll project
29
- cat << EOF >> Gemfile
30
- gem "bigdecimal", "~> 3.0.2"
31
- gem "webrick", "~> 1.7.0"
32
- gem "json", "~> 2.5.1"
33
- EOF
34
-
35
- # Add Jektify in file Gemfile
36
- sed -i "/ gem \"jekyll-feed\", \"~> 0.15.1\"/a \ \gem \"$APP__NAME\", \"~> $APP__VERSION\"" Gemfile
37
-
38
- # Add plugin of Jektify in file _config.yml
39
- sed -i "/- jekyll-feed/a\ \ - $APP__NAME" _config.yml
40
-
41
- # Add config Jektify in file _config.yml
42
- cat << EOF >> _config.yml
43
-
44
- $APP__NAME:
45
- enable: true
46
- open: true
47
- toggle:
48
- enable: true
49
- spotify:
50
- user: # "you_user_spotify"
51
- text: "See me no Spotify"
52
- sass:
53
- jekyll: true
54
- other:
55
- dir: "way/to/your/SASS"
56
- title:
57
- enable: false
58
- text: "Music name"
59
- description:
60
- enable: false
61
- text: |
62
- Jekyll plugin to generate html snippets for embedding Spotify Musics.
63
- To listen to the full song, open your Spotify and start these musics.
64
- EOF
65
-
66
- # Add liquid in markdown of Jektify
67
- echo "{% $APP__NAME spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark %}" >> _posts/*-welcome-to-jekyll.markdown
68
-
69
- # Bundler configuration folder
70
- mkdir -p .bundle
71
- cat << EOF > .bundle/config
72
- ---
73
- BUNDLE_PATH: "vendor/bundle"
74
- BUNDLE_DISABLE_SHARED_GEMS: "true"
75
- EOF
76
-
77
- # Re-Update Gemfile.lock for project Jekyll
78
- bundle install
79
-
80
- # Compiled project Jekyll with liquid of gem Jektify
81
- bundle exec jekyll b
82
- echo "${APP__NAME^^} $JEKYL__PROJECT compiled!"
83
-
84
- # Clean cache
85
- # _clean
15
+ echo "Tests, Done!"
@@ -0,0 +1,3 @@
1
+ ---
2
+ BUNDLE_PATH: "../.bundle-cache/bundle"
3
+ BUNDLE_DISABLE_SHARED_GEMS: "true"
@@ -0,0 +1,5 @@
1
+ _site
2
+ .sass-cache
3
+ .jekyll-cache
4
+ .jekyll-metadata
5
+ vendor
data/example/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "jekyll", "~> 4.4.1"
4
+ gem "logger", "~> 1.7.0"
5
+ gem "colorize", "~> 1.1.0"
6
+ gem "rake", "~> 13.3.0"
7
+ gem "erb", "~> 5.0.2"
8
+
9
+ group :jekyll_plugins do
10
+ gem "jektify", path: "/home/boss/Projects/github/jektify"
11
+ end
@@ -0,0 +1,181 @@
1
+ PATH
2
+ remote: /home/boss/Projects/github/jektify
3
+ specs:
4
+ jektify (1.0.8)
5
+ jekyll (>= 4.4)
6
+ sass (>= 3.7.4)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.7)
12
+ public_suffix (>= 2.0.2, < 7.0)
13
+ base64 (0.3.0)
14
+ bigdecimal (3.2.3)
15
+ colorator (1.1.0)
16
+ colorize (1.1.0)
17
+ concurrent-ruby (1.3.5)
18
+ csv (3.3.5)
19
+ em-websocket (0.5.3)
20
+ eventmachine (>= 0.12.9)
21
+ http_parser.rb (~> 0)
22
+ erb (5.0.2)
23
+ eventmachine (1.2.7)
24
+ ffi (1.17.2)
25
+ ffi (1.17.2-aarch64-linux-gnu)
26
+ ffi (1.17.2-aarch64-linux-musl)
27
+ ffi (1.17.2-arm-linux-gnu)
28
+ ffi (1.17.2-arm-linux-musl)
29
+ ffi (1.17.2-arm64-darwin)
30
+ ffi (1.17.2-x86-linux-gnu)
31
+ ffi (1.17.2-x86-linux-musl)
32
+ ffi (1.17.2-x86_64-darwin)
33
+ ffi (1.17.2-x86_64-linux-gnu)
34
+ ffi (1.17.2-x86_64-linux-musl)
35
+ forwardable-extended (2.6.0)
36
+ google-protobuf (4.32.1)
37
+ bigdecimal
38
+ rake (>= 13)
39
+ google-protobuf (4.32.1-aarch64-linux-gnu)
40
+ bigdecimal
41
+ rake (>= 13)
42
+ google-protobuf (4.32.1-aarch64-linux-musl)
43
+ bigdecimal
44
+ rake (>= 13)
45
+ google-protobuf (4.32.1-arm64-darwin)
46
+ bigdecimal
47
+ rake (>= 13)
48
+ google-protobuf (4.32.1-x86-linux-gnu)
49
+ bigdecimal
50
+ rake (>= 13)
51
+ google-protobuf (4.32.1-x86-linux-musl)
52
+ bigdecimal
53
+ rake (>= 13)
54
+ google-protobuf (4.32.1-x86_64-darwin)
55
+ bigdecimal
56
+ rake (>= 13)
57
+ google-protobuf (4.32.1-x86_64-linux-gnu)
58
+ bigdecimal
59
+ rake (>= 13)
60
+ google-protobuf (4.32.1-x86_64-linux-musl)
61
+ bigdecimal
62
+ rake (>= 13)
63
+ http_parser.rb (0.8.0)
64
+ i18n (1.14.7)
65
+ concurrent-ruby (~> 1.0)
66
+ jekyll (4.4.1)
67
+ addressable (~> 2.4)
68
+ base64 (~> 0.2)
69
+ colorator (~> 1.0)
70
+ csv (~> 3.0)
71
+ em-websocket (~> 0.5)
72
+ i18n (~> 1.0)
73
+ jekyll-sass-converter (>= 2.0, < 4.0)
74
+ jekyll-watch (~> 2.0)
75
+ json (~> 2.6)
76
+ kramdown (~> 2.3, >= 2.3.1)
77
+ kramdown-parser-gfm (~> 1.0)
78
+ liquid (~> 4.0)
79
+ mercenary (~> 0.3, >= 0.3.6)
80
+ pathutil (~> 0.9)
81
+ rouge (>= 3.0, < 5.0)
82
+ safe_yaml (~> 1.0)
83
+ terminal-table (>= 1.8, < 4.0)
84
+ webrick (~> 1.7)
85
+ jekyll-sass-converter (3.1.0)
86
+ sass-embedded (~> 1.75)
87
+ jekyll-watch (2.2.1)
88
+ listen (~> 3.0)
89
+ json (2.14.1)
90
+ kramdown (2.5.1)
91
+ rexml (>= 3.3.9)
92
+ kramdown-parser-gfm (1.1.0)
93
+ kramdown (~> 2.0)
94
+ liquid (4.0.4)
95
+ listen (3.9.0)
96
+ rb-fsevent (~> 0.10, >= 0.10.3)
97
+ rb-inotify (~> 0.9, >= 0.9.10)
98
+ logger (1.7.0)
99
+ mercenary (0.4.0)
100
+ pathutil (0.16.2)
101
+ forwardable-extended (~> 2.6)
102
+ public_suffix (6.0.2)
103
+ rake (13.3.0)
104
+ rb-fsevent (0.11.2)
105
+ rb-inotify (0.11.1)
106
+ ffi (~> 1.0)
107
+ rexml (3.4.4)
108
+ rouge (4.6.0)
109
+ safe_yaml (1.0.5)
110
+ sass (3.7.4)
111
+ sass-listen (~> 4.0.0)
112
+ sass-embedded (1.92.1)
113
+ google-protobuf (~> 4.31)
114
+ rake (>= 13)
115
+ sass-embedded (1.92.1-aarch64-linux-android)
116
+ google-protobuf (~> 4.31)
117
+ sass-embedded (1.92.1-aarch64-linux-gnu)
118
+ google-protobuf (~> 4.31)
119
+ sass-embedded (1.92.1-aarch64-linux-musl)
120
+ google-protobuf (~> 4.31)
121
+ sass-embedded (1.92.1-arm-linux-androideabi)
122
+ google-protobuf (~> 4.31)
123
+ sass-embedded (1.92.1-arm-linux-gnueabihf)
124
+ google-protobuf (~> 4.31)
125
+ sass-embedded (1.92.1-arm-linux-musleabihf)
126
+ google-protobuf (~> 4.31)
127
+ sass-embedded (1.92.1-arm64-darwin)
128
+ google-protobuf (~> 4.31)
129
+ sass-embedded (1.92.1-riscv64-linux-android)
130
+ google-protobuf (~> 4.31)
131
+ sass-embedded (1.92.1-riscv64-linux-gnu)
132
+ google-protobuf (~> 4.31)
133
+ sass-embedded (1.92.1-riscv64-linux-musl)
134
+ google-protobuf (~> 4.31)
135
+ sass-embedded (1.92.1-x86_64-darwin)
136
+ google-protobuf (~> 4.31)
137
+ sass-embedded (1.92.1-x86_64-linux-android)
138
+ google-protobuf (~> 4.31)
139
+ sass-embedded (1.92.1-x86_64-linux-gnu)
140
+ google-protobuf (~> 4.31)
141
+ sass-embedded (1.92.1-x86_64-linux-musl)
142
+ google-protobuf (~> 4.31)
143
+ sass-listen (4.0.0)
144
+ rb-fsevent (~> 0.9, >= 0.9.4)
145
+ rb-inotify (~> 0.9, >= 0.9.7)
146
+ terminal-table (3.0.2)
147
+ unicode-display_width (>= 1.1.1, < 3)
148
+ unicode-display_width (2.6.0)
149
+ webrick (1.9.1)
150
+
151
+ PLATFORMS
152
+ aarch64-linux-android
153
+ aarch64-linux-gnu
154
+ aarch64-linux-musl
155
+ arm-linux-androideabi
156
+ arm-linux-gnu
157
+ arm-linux-gnueabihf
158
+ arm-linux-musl
159
+ arm-linux-musleabihf
160
+ arm64-darwin
161
+ riscv64-linux-android
162
+ riscv64-linux-gnu
163
+ riscv64-linux-musl
164
+ ruby
165
+ x86-linux-gnu
166
+ x86-linux-musl
167
+ x86_64-darwin
168
+ x86_64-linux-android
169
+ x86_64-linux-gnu
170
+ x86_64-linux-musl
171
+
172
+ DEPENDENCIES
173
+ colorize (~> 1.1.0)
174
+ erb (~> 5.0.2)
175
+ jektify!
176
+ jekyll (~> 4.4.1)
177
+ logger (~> 1.7.0)
178
+ rake (~> 13.3.0)
179
+
180
+ BUNDLED WITH
181
+ 2.7.2
@@ -0,0 +1,43 @@
1
+ title: Example Jektify
2
+ email:
3
+ description: >-
4
+ Example Jektify
5
+ baseurl: ""
6
+ url: ""
7
+
8
+ plugins:
9
+ - jektify
10
+
11
+ jektify:
12
+ enable: true
13
+ open: true
14
+ toggle:
15
+ enable: true
16
+ spotify:
17
+ user: # "you_user_spotify"
18
+ text: "See me no Spotify"
19
+ sass:
20
+ jekyll: true
21
+ other:
22
+ dir: "_sass"
23
+ title:
24
+ enable: false
25
+ text: "Music name"
26
+ description:
27
+ enable: false
28
+ text: |
29
+ Jekyll plugin to generate html snippets for embedding Spotify Musics.
30
+ To listen to the full song, open your Spotify and start these musics.
31
+
32
+ exclude:
33
+ - .sass-cache/
34
+ - .bundle-cache
35
+ - .jekyll-cache/
36
+ - gemfiles/
37
+ - Gemfile
38
+ - Gemfile.lock
39
+ - node_modules/
40
+ - vendor/bundle/
41
+ - vendor/cache/
42
+ - vendor/gems/
43
+ - vendor/ruby/
@@ -0,0 +1,6 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <link rel="stylesheet" href="{{ '/assets/style.css' | relative_url }}">
6
+ </head>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+
8
+ <main class="page-content" aria-label="Content">
9
+ <div class="wrapper">
10
+ {{ content }}
11
+ </div>
12
+ </main>
13
+
14
+ <script type="text/javascript" src="{{ '/assets/jquery.min.js' | relative_url }}"></script>
15
+
16
+ {% if site.jektify.enable == true and site.jektify.toggle.enable == true %}
17
+ <script src="{{ '/assets/vendor/jektify/js/jektify.min.js' | prepend: site.baseurl }}" ></script>
18
+ {% endif %}
19
+
20
+ </body>
21
+
22
+ </html>
@@ -0,0 +1,36 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ {%- if page.title -%}
7
+ <h1 class="page-heading">{{ page.title }}</h1>
8
+ {%- endif -%}
9
+
10
+ {{ content }}
11
+
12
+ {%- if site.posts.size > 0 -%}
13
+
14
+ <h2 class="post-list-heading" style="text-align: center;">{{ page.list_title | default: "Posts" }}</h2>
15
+ <ul class="post-list" style="text-align: center;">
16
+ {%- for post in site.posts -%}
17
+ -------------------------------------------------------------------
18
+ <li>
19
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
20
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
21
+ <h3>
22
+ <a class="post-link" href="{{ post.url | relative_url }}">
23
+ {{ post.title | escape }}
24
+ </a>
25
+ </h3>
26
+ {%- if site.show_excerpts -%}
27
+ {{ post.excerpt }}
28
+ {%- endif -%}
29
+ </li>
30
+ -------------------------------------------------------------------
31
+ {%- endfor -%}
32
+ </ul>
33
+
34
+ {%- endif -%}
35
+
36
+ </div>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header" style="text-align: center;">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
+ {%- assign date_format = "%b %-d, %Y" -%}
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.author -%}
14
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
15
+ {%- endif -%}</p>
16
+ </header>
17
+
18
+ <div class="post-content e-content" itemprop="articleBody" style="text-align: center;">
19
+ {{ content }}
20
+ </div>
21
+
22
+ <div class="back" style="text-align: center;">
23
+ <a href="/"><- back to home</a>
24
+ </div>
25
+
26
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
27
+ </article>
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: post
3
+ title: "Welcome to Jektify!"
4
+ date: 2025-09-19 18:45:42 -0300
5
+ categories: jekyll jektify
6
+ ---
7
+
8
+ Access the documentation: [https://jektify.github.io/][jektify-doc]
9
+
10
+ {% jektify spotify/track/08mG3Y1vljYA6bvDt4Wqkj/dark %}
11
+
12
+ [jektify-doc]: :https://jektify.github.io/
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ * {
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+
9
+ a{
10
+ &:hover,&:active,&:focus,&:visited{
11
+ outline: none;
12
+ }
13
+ }
14
+
15
+ *, *:before, *:after {
16
+ -moz-box-sizing: border-box;
17
+ -webkit-box-sizing: border-box;
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ html, body {
22
+ width: 100%;
23
+ height: 100%;
24
+ }
@@ -0,0 +1,2 @@
1
+ @use "reset";
2
+ @use "jektify";