jekyll-auto-thumbnails 0.3.0 → 0.3.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: 16ce03cdf3b6510927461c3ce6bc7c1ceb7e6146bdbf5ff5245b4c7926ab5cc9
4
- data.tar.gz: 83656688c847d89c6f2319c3abe464453652c97536aadd081eb931ea8f07a94e
3
+ metadata.gz: 6831e1181efd731b1958961638786f25c48d27dcd8e4f595d67956c07c878b37
4
+ data.tar.gz: 2412a856f24d2455ee5fc7efdf75e0ea0b82a8e705ad4acd980e7bfd42deda57
5
5
  SHA512:
6
- metadata.gz: b1c00316b696556de42b2c4b873becaa6b5dc95896e5c83599debbdb068947ff153682e881fcf3d6ede108fecb97d647f740c0d166c3f19e0c5649852e09e5cc
7
- data.tar.gz: e2631ed452176bf5bdfccfad0b7f079bfb62578fc4d898f3e92dae0178cf015a392d3ab2f217cd35ef4b41fc0c3a3f56e4d8e745dbec2b9b76f7bbc38bc9e3bf
6
+ metadata.gz: feaf9a710b811943176803d08db54f87f0a51a612a9f55f612234e19edb04f5d708c4fee0cfe2c15ef1d6da3378cace7187026dd443e4061b68afc8978e8b2d1
7
+ data.tar.gz: 406ac63a4678afaaebf5ad5a09a481ce73b6a76febe73c36b82b96f31437add80e0dd026c98d716044f46fdcc5065559086f3238ba5cd1cd811b8d71db508914
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1](https://github.com/Texarkanine/jekyll-auto-thumbnails/compare/v0.3.0...v0.3.1) (2025-12-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * skip non-HTML documents to prevent CSS/SCSS wrapping ([#7](https://github.com/Texarkanine/jekyll-auto-thumbnails/issues/7)) ([c0d71f9](https://github.com/Texarkanine/jekyll-auto-thumbnails/commit/c0d71f971be6098342c1dd4a5070639129c6bce2))
9
+
3
10
  ## [0.3.0](https://github.com/Texarkanine/jekyll-auto-thumbnails/compare/v0.2.1...v0.3.0) (2025-12-11)
4
11
 
5
12
 
@@ -36,6 +36,7 @@ module JekyllAutoThumbnails
36
36
  # Scan all documents and pages
37
37
  (site.documents + site.pages).each do |doc|
38
38
  next unless doc.output
39
+ next unless html_document?(doc)
39
40
 
40
41
  Scanner.scan_html(doc.output, registry, config, site.source)
41
42
  end
@@ -69,6 +70,7 @@ module JekyllAutoThumbnails
69
70
  # Replace URLs in HTML
70
71
  (site.documents + site.pages).each do |doc|
71
72
  next unless doc.output
73
+ next unless html_document?(doc)
72
74
 
73
75
  doc.output = replace_urls(doc.output, url_map)
74
76
  end
@@ -127,7 +129,16 @@ module JekyllAutoThumbnails
127
129
  doc.to_html
128
130
  end
129
131
 
130
- private_class_method :replace_urls
132
+ # Check if a document outputs HTML (not CSS, JS, etc.)
133
+ #
134
+ # @param doc [Jekyll::Document, Jekyll::Page] the document to check
135
+ # @return [Boolean] true if the document outputs HTML
136
+ def self.html_document?(doc)
137
+ ext = File.extname(doc.path || doc.url || "").downcase
138
+ [".html", ".htm", ".md", ".markdown"].include?(ext)
139
+ end
140
+
141
+ private_class_method :replace_urls, :html_document?
131
142
  end
132
143
  end
133
144
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllAutoThumbnails
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-auto-thumbnails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Texarkanine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-11 00:00:00.000000000 Z
11
+ date: 2025-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll