al_folio_core 1.0.8 → 1.0.9
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/al_folio_core/version.rb +1 -1
- data/lib/al_folio_core.rb +26 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a890df9d8920810e72be518e297d79dd6fd9eb3633fd2e3166b9e42e2a3967d
|
|
4
|
+
data.tar.gz: e87ab9e0274093acffed3226700338c238e327eafefb5a47487a6c546cd9c592
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a21e4f30ca2feebb5ac90e921cf4cd2266c1a27b165c602f8ecd1f3c9f75c108c8ff7e0583d3d9c5bade4dd166795c0621b7918aa57f2a7dcd18c89013ab29b6
|
|
7
|
+
data.tar.gz: e87c66bae691e362365233b5138351304392405c3ee20b696f45e4107ad0a506da685ab09e66b9e93b535edd1999dc474dfb0ef516011273fa74754ec98ec110
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.9 - 2026-05-24
|
|
4
|
+
|
|
5
|
+
- Retried interrupted `jekyll-minifier` file writes so Jupyter notebook conversion does not fail builds with transient `Errno::EINTR`.
|
|
6
|
+
|
|
3
7
|
## 1.0.8 - 2026-05-24
|
|
4
8
|
|
|
5
9
|
- Fixed book-review inline CSS typos and contained floated cover figures within the article flow.
|
data/lib/al_folio_core.rb
CHANGED
|
@@ -132,6 +132,21 @@ module AlFolioCore
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
+
module JekyllMinifierEintrRetry
|
|
136
|
+
def output_file(dest, content)
|
|
137
|
+
attempts = 0
|
|
138
|
+
|
|
139
|
+
begin
|
|
140
|
+
super
|
|
141
|
+
rescue Errno::EINTR
|
|
142
|
+
attempts += 1
|
|
143
|
+
retry if attempts < 4
|
|
144
|
+
|
|
145
|
+
raise
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
135
150
|
module_function
|
|
136
151
|
|
|
137
152
|
def compat_enabled?(site)
|
|
@@ -209,6 +224,16 @@ module AlFolioCore
|
|
|
209
224
|
cache_digester.prepend(JekyllCacheBustThemeFallback)
|
|
210
225
|
end
|
|
211
226
|
|
|
227
|
+
def patch_jekyll_minifier_for_notebook_output!
|
|
228
|
+
return unless defined?(Jekyll::Compressor)
|
|
229
|
+
|
|
230
|
+
[Jekyll::Document, Jekyll::Page, Jekyll::StaticFile].each do |klass|
|
|
231
|
+
next if klass.ancestors.include?(JekyllMinifierEintrRetry)
|
|
232
|
+
|
|
233
|
+
klass.prepend(JekyllMinifierEintrRetry)
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
212
237
|
def jupyter_plugin_enabled?(site)
|
|
213
238
|
Array(site.config["plugins"]).map(&:to_s).include?("jekyll-jupyter-notebook")
|
|
214
239
|
end
|
|
@@ -247,6 +272,7 @@ end
|
|
|
247
272
|
|
|
248
273
|
AlFolioCore.patch_jekyll_terser_for_theme_assets!
|
|
249
274
|
AlFolioCore.patch_jekyll_cache_bust_for_theme_assets!
|
|
275
|
+
AlFolioCore.patch_jekyll_minifier_for_notebook_output!
|
|
250
276
|
Liquid::Template.register_tag("details", AlFolioCore::Tags::DetailsTag)
|
|
251
277
|
Liquid::Template.register_tag("file_exists", AlFolioCore::Tags::FileExistsTag)
|
|
252
278
|
Liquid::Template.register_filter(AlFolioCore::Filters::HideCustomBibtex)
|