jekyll-theme-zer0 0.20.3 → 0.21.2

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: 9a016d0fb4fa27f203571798256f468d7a19a71100ad551bd69e799c6b9797f3
4
- data.tar.gz: 458cc17ae4e8ea22eea496b213d4e4e6c496c128600ce1010d9f0d2f26bd9c45
3
+ metadata.gz: d7be7cd1499d69e545391f406a6e1513450da6b32f33584fcafc54af445bd49d
4
+ data.tar.gz: 53028dfe191e909adf5afba86a5ed51f382eb5e455daa440b015564de8a8090b
5
5
  SHA512:
6
- metadata.gz: 0f36f8cb07f2d8d426d6b8e9f441c38e8dbe82a07b502f1117f52ed97a9affc180e135c5df47b0c3e23f06fa8f3489395c84d30dc94882d3b9f735dd1645e952
7
- data.tar.gz: 0ef53bfa08a6fbc498c25e6d4776fed5b343e2a49e9d8d70cfea2361f1a62dc62fa052dc6ccf27bd06356a8bdd7d06896223cfdd4a9aa3795ecfa80fe84b664d
6
+ metadata.gz: 7083e5fc1b13c31ee8989abd710166eb3c006dd5187383660f876a69be7ff696f9eb7a28565869bb793e4214f7b3fe9e4c04b54d173cf9f987399d6f78e9ec2a
7
+ data.tar.gz: 84617ee1e7b5510596744ff7111df43ea2d23bcbe5fc0b413873354072e18e17ac8a77fe286fbd4c16705edf2f73bf8414331e8216ac1e5613175e0cb2fb240f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.21.2] - 2026-03-21
4
+
5
+ ### Changed
6
+ - Version bump: patch release
7
+ - Release tooling: RubyGems publishing now supports API-key auth via `.env` (`RUBY_API_KEY` mapped to `GEM_HOST_API_KEY`)
8
+
9
+ ### Commits in this release
10
+ - 34bed37 chore(deps): update Ruby gem dependencies (#31)
11
+ - 50ebdd4 chore(deps): update Ruby gem dependencies (#32)
12
+
13
+ ## [0.21.1] - 2026-03-13
14
+
15
+ ### Changed
16
+ - Version bump: patch release
17
+
18
+ ### Commits in this release
19
+ - 9665afd feat(templates): add README.md for templates directory and usage instructions
20
+ - cc81bd9 chore(deps): update Ruby gem dependencies (#24)
21
+
22
+
23
+ ## [0.21.0] - 2026-02-01
24
+
25
+ ### Added
26
+ - **Environment Switcher**: New settings modal tab with dev/prod URL shortcuts and copy actions
27
+ - **Navigation Assets**: Extracted navigation styles and scripts into `_sass/core/_navbar.scss` and `assets/js/navigation.js`
28
+
29
+ ### Changed
30
+ - **Settings Modal**: Redesigned info section with tabbed layout and compact theme info
31
+ - **Navigation UI**: Refined header utility controls, navbar labels/icons, and loaded navigation JS via js-cdn include
32
+ - **Dev Shortcuts**: Updated source shortcuts layout and labeling for clarity
33
+ - **Theme Branding**: Updated default title icon and subtitle in `_config.yml`
34
+
35
+ ## [0.20.8] - 2026-02-02
36
+
37
+ ### Changed
38
+ - Version bump: patch release
39
+
40
+ ### Commits in this release
41
+ - d71a42a feat(docker): add local Docker publishing capability
42
+
43
+
44
+ ## [0.20.7] - 2026-02-01
45
+
46
+ ### Changed
47
+ - Version bump: patch release
48
+
49
+ ### Commits in this release
50
+ - 969ce94 refactor(ci): abstract hardcoded values to GitHub variables and secrets
51
+
52
+
53
+ ## [0.20.6] - 2026-02-01
54
+
55
+ ### Changed
56
+ - Version bump: patch release
57
+
58
+ ### Commits in this release
59
+ - af25fc8 fix(ci): improve Docker compose compatibility for CI environments
60
+
61
+
62
+ ## [0.20.5] - 2026-02-01
63
+
64
+ ### Changed
65
+ - Version bump: patch release
66
+
67
+ ### Commits in this release
68
+ - 7a2eeaf fix(docker): add PAGES_REPO_NWO environment variable for Jekyll builds
69
+
70
+
71
+ ## [0.20.4] - 2026-02-01
72
+
73
+ ### Changed
74
+ - Version bump: patch release
75
+
76
+ ### Commits in this release
77
+ - a71e7a3 fix(ci): add PAGES_REPO_NWO env var and skip-remote for Jekyll builds
78
+ - 74e0929 fix(ci): ensure Gemfile.lock is updated during version bumps
79
+ - e06520e docs(prompts): enhance release pipeline documentation with best practices
80
+
81
+
3
82
  ## [0.20.3] - 2026-02-01
4
83
 
5
84
  ### Added
@@ -1,57 +1,104 @@
1
1
  <!--
2
- Title: Dev Shortcuts
3
- Description: This file contains the dev shortcuts for the site.
4
- file: dev-shortcuts.html
5
- variables:
6
- - site.repository
7
- - site.default_icon
8
- - site.collections_dir
9
- - site.repository_name
10
- - site.nav-file
11
- - site.local_git_pc
12
- - site.local_git_mac
13
- - page.collection
14
- - page_dir
15
- - testvar
16
- references:
17
- - https://shopify.github.io/liquid/tags/variable/#capture
18
- - https://getbootstrap.com/docs/5.3/components/collapse/
19
- tutorial:
20
- - https://jekyllcodex.org/without-plugin/hidden-settings/
21
- - https://jekyllcodex.org/without-plugin/hidden-settings/#collapse-feature
22
- -->
2
+ ===================================================================
3
+ DEV SHORTCUTS - Source Code Quick Access Links
4
+ ===================================================================
5
+
6
+ File: dev-shortcuts.html
7
+ Path: _includes/components/dev-shortcuts.html
8
+ Purpose: Provide quick access to source code editing in various IDEs
9
+
10
+ Dependencies:
11
+ - site.repository, site.branch, site.collections_dir
12
+ - page.collection, page.path
13
+ ===================================================================
14
+ -->
23
15
 
24
- <!-- TODO: Article about the collapse feature in Bootstrap https://getbootstrap.com/docs/5.3/components/collapse/-->
25
- <!-- TODO: Write tutorial on creating this hidden settings feature -->
16
+ {% comment %} Determine page directory for collections {% endcomment %}
17
+ {% if page.collection %}
18
+ {% capture page_dir %}{{ site.collections_dir }}{% endcapture %}
19
+ {% else %}
20
+ {% assign page_dir = "" %}
21
+ {% endif %}
26
22
 
27
- <!-- Source Code Control Shortcuts - Page -->
28
- <div class="container text-center">
29
-
30
- {% if page.collection %}
31
- {% capture page_dir %}{{ site.collections_dir }}{% endcapture %}
32
- {% assign testvar = "collection exists" %}
33
- {% endif %}
23
+ <div class="dev-shortcuts">
24
+ <div class="d-flex flex-column gap-2">
34
25
 
35
- <!-- Source Code Control Shortcuts - Page -->
36
- <a class="btn bg-primary" href="https://github.com/{{site.repository}}/blob/{{site.branch}}/{{ page_dir }}/{{page.path}}">
37
- <i class="{{site.default_icon}} {{site.default_icon}}-github"></i>
38
- <!-- https://icons.getbootstrap.com/icons/github/ -->
39
- </a>
40
- <a class="btn bg-primary" href="https://github.dev/{{site.repository}}/blob/{{site.branch}}/{{ page_dir }}/{{ page.path }}">
41
- <i class="{{site.default_icon}} {{site.default_icon}}-cloud"></i>
42
- <!-- https://icons.getbootstrap.com/icons/microsoft/ -->
43
- </a>
26
+ <!-- Section Label -->
27
+ <small class="text-body-secondary fw-medium text-uppercase">
28
+ <i class="bi bi-code-slash me-1"></i>Source Code
29
+ </small>
44
30
 
45
- <!-- Source Code Control Shortcuts - Site and Nav -->
31
+ <!-- Button Group -->
32
+ <div class="btn-group-vertical" role="group" aria-label="Source code shortcuts">
33
+
34
+ <!-- View on GitHub -->
35
+ <a href="https://github.com/{{ site.repository }}/blob/{{ site.branch }}/{{ page_dir }}/{{ page.path }}"
36
+ target="_blank"
37
+ rel="noopener"
38
+ class="btn btn-outline-secondary btn-sm d-flex align-items-center justify-content-between"
39
+ data-bs-toggle="tooltip"
40
+ data-bs-placement="left"
41
+ title="View source file on GitHub">
42
+ <span>
43
+ <i class="bi bi-github me-2"></i>
44
+ View on GitHub
45
+ </span>
46
+ <i class="bi bi-box-arrow-up-right text-body-secondary small"></i>
47
+ </a>
48
+
49
+ <!-- Edit in GitHub.dev -->
50
+ <a href="https://github.dev/{{ site.repository }}/blob/{{ site.branch }}/{{ page_dir }}/{{ page.path }}"
51
+ target="_blank"
52
+ rel="noopener"
53
+ class="btn btn-outline-secondary btn-sm d-flex align-items-center justify-content-between"
54
+ data-bs-toggle="tooltip"
55
+ data-bs-placement="left"
56
+ title="Open in browser-based VS Code editor">
57
+ <span>
58
+ <i class="bi bi-cloud me-2"></i>
59
+ Edit in GitHub.dev
60
+ </span>
61
+ <i class="bi bi-box-arrow-up-right text-body-secondary small"></i>
62
+ </a>
63
+
64
+ <!-- Open in Local VS Code -->
65
+ <a href="vscode://file{{ site.local_git }}/{{ site.repository_name }}/{{ page_dir }}/{{ page.path }}"
66
+ class="btn btn-outline-secondary btn-sm d-flex align-items-center justify-content-between"
67
+ data-bs-toggle="tooltip"
68
+ data-bs-placement="left"
69
+ title="Open in local VS Code (requires local clone)">
70
+ <span>
71
+ <i class="bi bi-code-square me-2"></i>
72
+ Open in VS Code
73
+ </span>
74
+ <i class="bi bi-window text-body-secondary small"></i>
75
+ </a>
76
+
77
+ </div>
46
78
 
47
- <a class="btn bg-primary" href="vscode://file{{ site.local_git}}/{{ site.repository_name }}/{{ page_dir }}/{{ page.path }}">
48
- <i class="{{site.default_icon}} {{site.default_icon}}-code"></i>
49
- </a>
50
-
51
- <!-- site config -->
52
- <a class="btn bg-primary" href="https://github.com/{{site.repository}}/blob/{{site.branch}}/_config.yml">
53
- <i class="bi bi-gear"></i>
54
- <!-- https://icons.getbootstrap.com/icons/gear/ -->
55
- </a>
56
-
79
+ <!-- Config Links -->
80
+ <small class="text-body-secondary fw-medium text-uppercase mt-2">
81
+ <i class="bi bi-sliders me-1"></i>Configuration
82
+ </small>
83
+
84
+ <div class="btn-group-vertical" role="group" aria-label="Configuration shortcuts">
85
+
86
+ <!-- Site Config -->
87
+ <a href="https://github.com/{{ site.repository }}/blob/{{ site.branch }}/_config.yml"
88
+ target="_blank"
89
+ rel="noopener"
90
+ class="btn btn-outline-secondary btn-sm d-flex align-items-center justify-content-between"
91
+ data-bs-toggle="tooltip"
92
+ data-bs-placement="left"
93
+ title="View Jekyll site configuration">
94
+ <span>
95
+ <i class="bi bi-gear me-2"></i>
96
+ Site Config
97
+ </span>
98
+ <code class="small ms-2">_config.yml</code>
99
+ </a>
100
+
101
+ </div>
102
+
103
+ </div>
57
104
  </div>
@@ -0,0 +1,212 @@
1
+ <!--
2
+ ===================================================================
3
+ ENVIRONMENT SWITCHER - Dev/Prod URL Display and Toggle
4
+ ===================================================================
5
+
6
+ File: env-switcher.html
7
+ Path: _includes/components/env-switcher.html
8
+ Purpose: Display current environment and provide URL switching
9
+
10
+ Dependencies:
11
+ - jekyll.environment: Current build environment
12
+ - site.url: Production URL
13
+ - site.port: Development port (default 4000)
14
+ - Bootstrap 5 components
15
+ ===================================================================
16
+ -->
17
+
18
+ {% assign current_env = jekyll.environment | default: "development" %}
19
+ {% assign is_production = current_env == "production" %}
20
+ {% assign prod_url = site.url | append: site.baseurl %}
21
+ {% assign dev_url = "http://localhost:" | append: site.port | default: 4000 | append: site.baseurl %}
22
+
23
+ <!-- Environment Status Card -->
24
+ <div class="card border-{{ is_production | if: 'success', 'warning' }} mb-3">
25
+ <div class="card-header d-flex align-items-center justify-content-between py-2 bg-{{ is_production | if: 'success', 'warning' }} bg-opacity-10">
26
+ <span class="fw-semibold">
27
+ <i class="bi bi-{{ is_production | if: 'cloud-check', 'pc-display' }} me-2"></i>
28
+ Current Environment
29
+ </span>
30
+ {% if is_production %}
31
+ <span class="badge bg-success">
32
+ <i class="bi bi-globe me-1"></i>Production
33
+ </span>
34
+ {% else %}
35
+ <span class="badge bg-warning text-dark">
36
+ <i class="bi bi-code-slash me-1"></i>Development
37
+ </span>
38
+ {% endif %}
39
+ </div>
40
+ <div class="card-body">
41
+ <!-- Active URL Display -->
42
+ <div class="mb-3">
43
+ <label class="form-label small text-body-secondary mb-1">
44
+ <i class="bi bi-link-45deg me-1"></i>Current Page URL
45
+ </label>
46
+ <div class="input-group input-group-sm">
47
+ <span class="input-group-text">
48
+ <i class="bi bi-{{ is_production | if: 'lock', 'unlock' }}"></i>
49
+ </span>
50
+ <input type="text"
51
+ class="form-control font-monospace"
52
+ value="{{ is_production | if: prod_url, dev_url }}{{ page.url }}"
53
+ readonly
54
+ id="currentUrlInput">
55
+ <button class="btn btn-outline-secondary"
56
+ type="button"
57
+ onclick="copyToClipboard('currentUrlInput', this)"
58
+ title="Copy to clipboard">
59
+ <i class="bi bi-clipboard"></i>
60
+ </button>
61
+ </div>
62
+ </div>
63
+
64
+ <!-- Build Info -->
65
+ <div class="row g-2 text-center mb-3">
66
+ <div class="col-6">
67
+ <div class="p-2 bg-body-tertiary rounded">
68
+ <small class="text-body-secondary d-block">Build Time</small>
69
+ <strong class="small">{{ site.time | date: "%b %d, %H:%M" }}</strong>
70
+ </div>
71
+ </div>
72
+ <div class="col-6">
73
+ <div class="p-2 bg-body-tertiary rounded">
74
+ <small class="text-body-secondary d-block">Jekyll</small>
75
+ <strong class="small">v{{ jekyll.version }}</strong>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- Quick URL Links -->
83
+ <div class="card border-secondary">
84
+ <div class="card-header py-2 bg-body-tertiary">
85
+ <span class="fw-semibold small">
86
+ <i class="bi bi-signpost-2 me-2"></i>Quick Links
87
+ </span>
88
+ </div>
89
+ <ul class="list-group list-group-flush">
90
+ <!-- Production URL -->
91
+ <li class="list-group-item d-flex justify-content-between align-items-center">
92
+ <div class="d-flex align-items-center">
93
+ <span class="badge bg-success me-2">Prod</span>
94
+ <a href="{{ prod_url }}{{ page.url }}"
95
+ target="_blank"
96
+ rel="noopener"
97
+ class="text-decoration-none font-monospace small text-truncate"
98
+ style="max-width: 180px;"
99
+ title="{{ prod_url }}{{ page.url }}">
100
+ {{ site.url | remove: "https://" | remove: "http://" | truncate: 25 }}{{ page.url | truncate: 15 }}
101
+ </a>
102
+ </div>
103
+ <div class="btn-group btn-group-sm">
104
+ <a href="{{ prod_url }}{{ page.url }}"
105
+ target="_blank"
106
+ rel="noopener"
107
+ class="btn btn-outline-success"
108
+ title="Open in new tab">
109
+ <i class="bi bi-box-arrow-up-right"></i>
110
+ </a>
111
+ <button class="btn btn-outline-secondary"
112
+ type="button"
113
+ onclick="copyUrl('{{ prod_url }}{{ page.url }}', this)"
114
+ title="Copy URL">
115
+ <i class="bi bi-clipboard"></i>
116
+ </button>
117
+ </div>
118
+ </li>
119
+
120
+ <!-- Development URL -->
121
+ <li class="list-group-item d-flex justify-content-between align-items-center">
122
+ <div class="d-flex align-items-center">
123
+ <span class="badge bg-warning text-dark me-2">Dev</span>
124
+ <a href="{{ dev_url }}{{ page.url }}"
125
+ target="_blank"
126
+ rel="noopener"
127
+ class="text-decoration-none font-monospace small text-truncate"
128
+ style="max-width: 180px;"
129
+ title="{{ dev_url }}{{ page.url }}">
130
+ localhost:{{ site.port | default: 4000 }}{{ page.url | truncate: 15 }}
131
+ </a>
132
+ </div>
133
+ <div class="btn-group btn-group-sm">
134
+ <a href="{{ dev_url }}{{ page.url }}"
135
+ target="_blank"
136
+ rel="noopener"
137
+ class="btn btn-outline-warning"
138
+ title="Open in new tab">
139
+ <i class="bi bi-box-arrow-up-right"></i>
140
+ </a>
141
+ <button class="btn btn-outline-secondary"
142
+ type="button"
143
+ onclick="copyUrl('{{ dev_url }}{{ page.url }}', this)"
144
+ title="Copy URL">
145
+ <i class="bi bi-clipboard"></i>
146
+ </button>
147
+ </div>
148
+ </li>
149
+
150
+ {% if site.repository %}
151
+ <!-- GitHub Source -->
152
+ <li class="list-group-item d-flex justify-content-between align-items-center">
153
+ <div class="d-flex align-items-center">
154
+ <span class="badge bg-dark me-2">Source</span>
155
+ <span class="font-monospace small text-truncate" style="max-width: 180px;">
156
+ {{ page.path | split: "/" | last }}
157
+ </span>
158
+ </div>
159
+ <a href="https://github.com/{{ site.repository }}/blob/{{ site.branch | default: 'main' }}/{% if page.collection %}{{ site.collections_dir }}/{% endif %}{{ page.path }}"
160
+ target="_blank"
161
+ rel="noopener"
162
+ class="btn btn-sm btn-outline-dark"
163
+ title="View on GitHub">
164
+ <i class="bi bi-github"></i>
165
+ </a>
166
+ </li>
167
+ {% endif %}
168
+ </ul>
169
+ </div>
170
+
171
+ <!-- Environment Tip -->
172
+ <div class="alert alert-{{ is_production | if: 'success', 'warning' }} alert-dismissible fade show mt-3 py-2 small" role="alert">
173
+ <i class="bi bi-info-circle me-1"></i>
174
+ {% if is_production %}
175
+ Viewing <strong>production</strong> build. Changes require deployment.
176
+ {% else %}
177
+ <strong>Development</strong> mode. Changes auto-reload on save.
178
+ {% endif %}
179
+ <button type="button" class="btn-close btn-close-sm" data-bs-dismiss="alert" aria-label="Close" style="padding: 0.5rem;"></button>
180
+ </div>
181
+
182
+ <script>
183
+ function copyToClipboard(inputId, btn) {
184
+ const input = document.getElementById(inputId);
185
+ navigator.clipboard.writeText(input.value).then(() => {
186
+ showCopyFeedback(btn, true);
187
+ }).catch(() => {
188
+ showCopyFeedback(btn, false);
189
+ });
190
+ }
191
+
192
+ function copyUrl(url, btn) {
193
+ navigator.clipboard.writeText(url).then(() => {
194
+ showCopyFeedback(btn, true);
195
+ }).catch(() => {
196
+ showCopyFeedback(btn, false);
197
+ });
198
+ }
199
+
200
+ function showCopyFeedback(btn, success) {
201
+ const originalHtml = btn.innerHTML;
202
+ btn.innerHTML = success ? '<i class="bi bi-check2"></i>' : '<i class="bi bi-x"></i>';
203
+ btn.classList.add(success ? 'btn-success' : 'btn-danger');
204
+ btn.classList.remove('btn-outline-secondary');
205
+
206
+ setTimeout(() => {
207
+ btn.innerHTML = originalHtml;
208
+ btn.classList.remove('btn-success', 'btn-danger');
209
+ btn.classList.add('btn-outline-secondary');
210
+ }, 1500);
211
+ }
212
+ </script>