jekyll-theme-nyx 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0098450a8a4e64c7cb61f5c92b8d008eab9653f3a8adefd2cf868bc32560b67
4
- data.tar.gz: 68814094b044e28ce4961209a3faba685119bdd90df54bc1e9f60bd8aea455c0
3
+ metadata.gz: 84549c6a1c8208e2801009d9ea2359be3f6c6ed090d4f0c9a0c2ad98ef2bbb58
4
+ data.tar.gz: f594f9ff61f931087c16aeac0ccd8d6f11693053a0f811505c456812a5303d4e
5
5
  SHA512:
6
- metadata.gz: 4bae53e646d6940ac0882ade2ceb8ffc3de08ac7130d3103b35c9fe34da74cb058b54670ed192c5737061d10875ea206d02cae06f94e2ae20b851f223689a8fc
7
- data.tar.gz: b13e8c8b70ce74448f3d4450f553bbb372bfca16d67475a8405b09e252cdc05c858120eea19439c86f3d8d168bf0f1a162b83f0cd86e2201235ca0a201f9a3dc
6
+ metadata.gz: 9d4279705b1c8c1f2c5b20ff676f0c1e6411ab379edeb0a48343dbe7f394c0e1cc1983b379e488956ec9245e059947bd6a4d4b7861d9e01c914b4dac3a093de7
7
+ data.tar.gz: 112c924fec3724d2f04274530a5163e6a7abe9474a359c2a67e4f1872bd2ec649211abf5d43a56ad58c3aefb8dd8cfd586c29e36c90a5b883c37d4b7565a7a5a
data/CHANGELOG.md CHANGED
@@ -18,3 +18,6 @@
18
18
  - Layouts
19
19
  - Syntax Highlighting
20
20
 
21
+ ## [0.2.1] - 2026-01-04
22
+
23
+ - Fixed Syntax Highlighting
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-theme-nyx (0.2.0)
4
+ jekyll-theme-nyx (0.2.1)
5
5
  jekyll (~> 4.0)
6
6
 
7
7
  GEM
data/_config.yml CHANGED
@@ -1,11 +1,22 @@
1
- title: Test Site
1
+ title: Nyx Demo
2
2
  theme: jekyll-theme-nyx
3
3
 
4
4
  markdown: kramdown
5
5
 
6
+
6
7
  kramdown:
7
8
  syntax_highlighter: rouge
8
9
  syntax_highlighter_opts:
9
10
  css_class: highlight
10
- span:
11
- line_numbers: true
11
+ block:
12
+ line_numbers: true
13
+
14
+
15
+ exclude:
16
+ - "*.gem"
17
+ - "*.gemspec"
18
+ - README.md
19
+ - LICENSE
20
+ - Rakefile
21
+ - CHANGELOG.md
22
+ - CODE_OF_CONDUCT.md
@@ -3,7 +3,6 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <link rel="stylesheet" href="{{ "/assets/css/rouge.css" | relative_url }}">
7
6
  <link rel="stylesheet" href="{{ "/assets/css/nyx.css" | relative_url }}">
8
7
  <title>{{ site.title }}</title>
9
8
  </head>
data/_layouts/post.md CHANGED
@@ -1,9 +1,22 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <h1>{{ page.title }}</h1>
5
- <p>{{ page.date | date: "%B %d, %Y" }} – Written by {{ page.author }}</p>
6
-
4
+ <header>
5
+ <h1>{{ page.title }}</h1>
6
+ <p>{{ page.date | date: "%B %d, %Y" }} – Written by {{ page.author }}</p>
7
+ </header>
7
8
  <main>
8
9
  {{ content }}
9
10
  </main>
11
+
12
+ <script>
13
+ document.addEventListener("DOMContentLoaded", () => {
14
+ document.querySelectorAll('div.highlighter-rouge').forEach(wrapper => {
15
+ const parent = wrapper.parentNode;
16
+ const inner = wrapper.querySelector('.highlight');
17
+ if (inner && parent) {
18
+ parent.replaceChild(inner, wrapper);
19
+ }
20
+ });
21
+ });
22
+ </script>
@@ -96,7 +96,6 @@ group = [
96
96
  ]
97
97
 
98
98
  puts group.sort.reverse
99
-
100
99
  ```
101
100
 
102
101
  ## Images
data/_sass/nyx/_code.scss CHANGED
@@ -1,3 +1,4 @@
1
+ /* Wrapper for code blocks */
1
2
  .highlight {
2
3
  background: #0f111a;
3
4
  border-radius: 0.5rem;
@@ -8,23 +9,19 @@
8
9
  font-size: 0.9rem;
9
10
  line-height: 1.4;
10
11
  color: #f8f8f2;
12
+ margin: 0;
11
13
  }
12
14
 
13
- .rouge-table {
14
- width: 100%;
15
- table-layout: fixed;
16
- border-collapse: collapse;
17
- }
18
-
15
+ /* Gutter (line numbers) */
19
16
  .rouge-gutter {
20
17
  user-select: none;
21
18
  text-align: right;
22
- padding: 0.75rem 0.75rem 0.75rem 1rem;
23
19
  background: rgba(255, 255, 255, 0.04);
24
20
  border-right: 1px solid rgba(255, 255, 255, 0.08);
21
+ font-size: 0.9rem;
22
+ line-height: 1.4;
25
23
  vertical-align: top;
26
24
  white-space: nowrap;
27
- font-size: 0.8rem;
28
25
  color: #6b7089;
29
26
  }
30
27
 
@@ -32,6 +29,7 @@
32
29
  margin: 0;
33
30
  }
34
31
 
32
+ /* Code area */
35
33
  .rouge-code {
36
34
  overflow-x: auto;
37
35
  padding: 0.75rem 1rem;
@@ -42,4 +40,8 @@
42
40
  font-family: inherit;
43
41
  line-height: inherit;
44
42
  white-space: pre;
45
- }
43
+ }
44
+
45
+ .rouge-table td {
46
+ padding: 0;
47
+ }
@@ -15,6 +15,6 @@ footer {
15
15
  main {
16
16
  display: flex;
17
17
  flex-direction: column;
18
- padding: $space-5;
18
+ padding: $space-4;
19
19
  min-width: 0;
20
20
  }
@@ -1,217 +1,213 @@
1
1
  .highlight table td { padding: 5px; }
2
2
  .highlight table pre { margin: 0; }
3
- .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
3
+ .c, .ch, .cd, .cpf {
4
4
  color: #75715e;
5
5
  font-style: italic;
6
6
  }
7
- .highlight .cm {
7
+ .cm {
8
8
  color: #75715e;
9
9
  font-style: italic;
10
10
  }
11
- .highlight .c1 {
11
+ .c1 {
12
12
  color: #75715e;
13
13
  font-style: italic;
14
14
  }
15
- .highlight .cp {
15
+ .cp {
16
16
  color: #75715e;
17
17
  font-weight: bold;
18
18
  }
19
- .highlight .cs {
19
+ .cs {
20
20
  color: #75715e;
21
21
  font-weight: bold;
22
22
  font-style: italic;
23
23
  }
24
- .highlight .err {
24
+ .err {
25
25
  color: #960050;
26
26
  background-color: #1e0010;
27
27
  }
28
- .highlight .gi {
28
+ .gi {
29
29
  color: #ffffff;
30
30
  background-color: #324932;
31
31
  }
32
- .highlight .gd {
32
+ .gd {
33
33
  color: #ffffff;
34
34
  background-color: #493131;
35
35
  }
36
- .highlight .ge {
36
+ .ge {
37
37
  font-style: italic;
38
38
  }
39
- .highlight .ges {
39
+ .ges {
40
40
  font-weight: bold;
41
41
  font-style: italic;
42
42
  }
43
- .highlight .gr {
43
+ .gr {
44
44
  color: #aa0000;
45
45
  }
46
- .highlight .gt {
46
+ .gt {
47
47
  color: #aa0000;
48
48
  }
49
- .highlight .gh {
49
+ .gh {
50
50
  color: #999999;
51
51
  }
52
- .highlight .go {
52
+ .go {
53
53
  color: #888888;
54
54
  }
55
- .highlight .gp {
55
+ .gp {
56
56
  color: #555555;
57
57
  }
58
- .highlight .gs {
58
+ .gs {
59
59
  font-weight: bold;
60
60
  }
61
- .highlight .gu {
61
+ .gu {
62
62
  color: #aaaaaa;
63
63
  }
64
- .highlight .k, .highlight .kv {
64
+ .k, .kv {
65
65
  color: #66d9ef;
66
66
  font-weight: bold;
67
67
  }
68
- .highlight .kc {
68
+ .kc {
69
69
  color: #66d9ef;
70
70
  font-weight: bold;
71
71
  }
72
- .highlight .kd {
72
+ .kd {
73
73
  color: #66d9ef;
74
74
  font-weight: bold;
75
75
  }
76
- .highlight .kp {
76
+ .kp {
77
77
  color: #66d9ef;
78
78
  font-weight: bold;
79
79
  }
80
- .highlight .kr {
80
+ .kr {
81
81
  color: #66d9ef;
82
82
  font-weight: bold;
83
83
  }
84
- .highlight .kt {
84
+ .kt {
85
85
  color: #66d9ef;
86
86
  font-weight: bold;
87
87
  }
88
- .highlight .kn {
88
+ .kn {
89
89
  color: #f92672;
90
90
  font-weight: bold;
91
91
  }
92
- .highlight .ow {
92
+ .ow {
93
93
  color: #f92672;
94
94
  font-weight: bold;
95
95
  }
96
- .highlight .o {
96
+ .o {
97
97
  color: #f92672;
98
98
  font-weight: bold;
99
99
  }
100
- .highlight .mf {
100
+ .mf {
101
101
  color: #ae81ff;
102
102
  }
103
- .highlight .mh {
103
+ .mh {
104
104
  color: #ae81ff;
105
105
  }
106
- .highlight .il {
106
+ .il {
107
107
  color: #ae81ff;
108
108
  }
109
- .highlight .mi {
109
+ .mi {
110
110
  color: #ae81ff;
111
111
  }
112
- .highlight .mo {
112
+ .mo {
113
113
  color: #ae81ff;
114
114
  }
115
- .highlight .m, .highlight .mb, .highlight .mx {
115
+ .m, .mb, .mx {
116
116
  color: #ae81ff;
117
117
  }
118
- .highlight .se {
118
+ .se {
119
119
  color: #ae81ff;
120
120
  }
121
- .highlight .sa {
121
+ .sa {
122
122
  color: #66d9ef;
123
123
  font-weight: bold;
124
124
  }
125
- .highlight .sb {
125
+ .sb {
126
126
  color: #e6db74;
127
127
  }
128
- .highlight .sc {
128
+ .sc {
129
129
  color: #e6db74;
130
130
  }
131
- .highlight .sd {
131
+ .sd {
132
132
  color: #e6db74;
133
133
  }
134
- .highlight .s2 {
134
+ .s2 {
135
135
  color: #e6db74;
136
136
  }
137
- .highlight .sh {
137
+ .sh {
138
138
  color: #e6db74;
139
139
  }
140
- .highlight .si {
140
+ .si {
141
141
  color: #e6db74;
142
142
  }
143
- .highlight .sx {
143
+ .sx {
144
144
  color: #e6db74;
145
145
  }
146
- .highlight .sr {
146
+ .sr {
147
147
  color: #e6db74;
148
148
  }
149
- .highlight .s1 {
149
+ .s1 {
150
150
  color: #e6db74;
151
151
  }
152
- .highlight .ss {
152
+ .ss {
153
153
  color: #e6db74;
154
154
  }
155
- .highlight .s, .highlight .dl {
155
+ .s, .dl {
156
156
  color: #e6db74;
157
157
  }
158
- .highlight .na {
158
+ .na {
159
159
  color: #a6e22e;
160
160
  }
161
- .highlight .nc {
161
+ .nc {
162
162
  color: #a6e22e;
163
163
  font-weight: bold;
164
164
  }
165
- .highlight .nd {
165
+ .nd {
166
166
  color: #a6e22e;
167
167
  font-weight: bold;
168
168
  }
169
- .highlight .ne {
169
+ .ne {
170
170
  color: #a6e22e;
171
171
  font-weight: bold;
172
172
  }
173
- .highlight .nf, .highlight .fm {
173
+ .nf, .fm {
174
174
  color: #a6e22e;
175
175
  font-weight: bold;
176
176
  }
177
- .highlight .no {
177
+ .no {
178
178
  color: #66d9ef;
179
179
  }
180
- .highlight .bp {
180
+ .bp {
181
181
  color: #f8f8f2;
182
182
  }
183
- .highlight .nb {
183
+ .nb {
184
184
  color: #f8f8f2;
185
185
  }
186
- .highlight .ni {
186
+ .ni {
187
187
  color: #f8f8f2;
188
188
  }
189
- .highlight .nn {
189
+ .nn {
190
190
  color: #f8f8f2;
191
191
  }
192
- .highlight .vc {
192
+ .vc {
193
193
  color: #f8f8f2;
194
194
  }
195
- .highlight .vg {
195
+ .vg {
196
196
  color: #f8f8f2;
197
197
  }
198
- .highlight .vi {
198
+ .vi {
199
199
  color: #f8f8f2;
200
200
  }
201
- .highlight .nv, .highlight .vm {
201
+ .nv, .vm {
202
202
  color: #f8f8f2;
203
203
  }
204
- .highlight .w {
204
+ .w {
205
205
  color: #f8f8f2;
206
206
  }
207
- .highlight .nl {
207
+ .nl {
208
208
  color: #f8f8f2;
209
209
  font-weight: bold;
210
210
  }
211
- .highlight .nt {
211
+ .nt {
212
212
  color: #f92672;
213
213
  }
214
- .highlight {
215
- color: #f8f8f2;
216
- background-color: #49483e;
217
- }
data/assets/css/nyx.scss CHANGED
@@ -5,4 +5,5 @@
5
5
  @use "nyx/base";
6
6
  @use "nyx/layout";
7
7
  @use "nyx/typography";
8
- @use "nyx/code";
8
+ @use "nyx/code";
9
+ @use "nyx/rouge";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-theme-nyx"
5
- spec.version = "0.2.0"
5
+ spec.version = "0.2.1"
6
6
  spec.authors = ["Slavetomints"]
7
7
  spec.email = ["me@slavetomints.com"]
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slavetomints
@@ -46,10 +46,10 @@ files:
46
46
  - _sass/nyx/_base.scss
47
47
  - _sass/nyx/_code.scss
48
48
  - _sass/nyx/_layout.scss
49
+ - _sass/nyx/_rouge.scss
49
50
  - _sass/nyx/_typography.scss
50
51
  - _sass/nyx/_variables.scss
51
52
  - assets/css/nyx.scss
52
- - assets/css/rouge.css
53
53
  - assets/img/black-logo.svg
54
54
  - assets/img/white-logo.svg
55
55
  - index.md