jekyll-validator 0.1.2 → 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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +4 -2
- data/README.md +2 -2
- data/lib/jekyll-validator/version.rb +1 -1
- data/lib/jekyll-validator.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72e72ee4c1b81557dfdac80e1a1217548d435fcb66d7e439831ee43237a781c2
|
|
4
|
+
data.tar.gz: 65e7e91ef7985b0c5ab614f91275830d774474f1aecaa0ba7a05c2972bb7c9df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66231c87dd38f331cf828cfc9261822b51e713348b3be4cab47f2efc6a45f8d094bb9437770258f84fc698856d0886e3e73e005429723b53f1ac96d035adb384
|
|
7
|
+
data.tar.gz: dfafd0f112c0c2297cf6ddc652368041052f497b0f5d8d6ba5db74ccbb5b9f00b4deab38878d2e98022d101a116d9c56763dfa97d7a055d73b4b64ec30feeb62
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jekyll-validator (0.1
|
|
4
|
+
jekyll-validator (0.2.1)
|
|
5
5
|
jekyll (>= 3.0, < 5.0)
|
|
6
6
|
rainbow (>= 3.0, < 4.0)
|
|
7
7
|
w3c_validators (>= 1.0, < 2.0)
|
|
@@ -113,6 +113,8 @@ GEM
|
|
|
113
113
|
sass-embedded (1.62.0)
|
|
114
114
|
google-protobuf (~> 3.21)
|
|
115
115
|
rake (>= 10.0.0)
|
|
116
|
+
sass-embedded (1.62.0-arm64-darwin)
|
|
117
|
+
google-protobuf (~> 3.21)
|
|
116
118
|
terminal-table (3.0.2)
|
|
117
119
|
unicode-display_width (>= 1.1.1, < 3)
|
|
118
120
|
unicode-display_width (2.4.2)
|
|
@@ -141,4 +143,4 @@ DEPENDENCIES
|
|
|
141
143
|
webmock (~> 3.18)
|
|
142
144
|
|
|
143
145
|
BUNDLED WITH
|
|
144
|
-
2.4.
|
|
146
|
+
2.4.13
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# JekyllValidator
|
|
2
2
|
|
|
3
|
-
JekyllValidator is a gem that helps you validate the output of your Jekyll website every time it's generated. I got the idea from my blog post ["Automating HTML Validation for a Happier Life"], which includes a simple bash script to automate the process. I created this plugin to enhance the platform I use with better functionality. I incorporated CSS Validation to achieve this, using
|
|
3
|
+
JekyllValidator is a gem that helps you validate the output of your Jekyll website every time it's generated. I got the idea from my blog post ["Automating HTML Validation for a Happier Life"](https://seoengr.net/2023/04/20/automating-html-validation.html "Automating HTML Validation for a Happier Life"), which includes a simple bash script to automate the process. I created this plugin to enhance the platform I use with better functionality. I incorporated CSS Validation to achieve this, using the language that I adore.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -28,4 +28,4 @@ It is possible to exclude files from the validation process:
|
|
|
28
28
|
|
|
29
29
|
## Code of Conduct
|
|
30
30
|
|
|
31
|
-
Everyone interacting in the
|
|
31
|
+
Everyone interacting in the JekyllValidator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jekyll-validator/blob/main/CODE_OF_CONDUCT.md).
|
data/lib/jekyll-validator.rb
CHANGED
|
@@ -40,12 +40,14 @@ module Jekyll
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
Jekyll::Hooks.register [:site], :post_write do |site|
|
|
43
|
-
|
|
43
|
+
break if ENV["JEKYLL_ENV"] == "production"
|
|
44
|
+
|
|
45
|
+
excluded = site.config.dig("validator", "exclude")
|
|
44
46
|
|
|
45
47
|
Dir.glob(File.join("_site", "**/*")).each do |file|
|
|
46
48
|
next if File.directory?(file)
|
|
47
49
|
next unless File.extname(file) =~ /.css|.html/
|
|
48
50
|
|
|
49
|
-
Jekyll::Validator.call(file) unless excluded
|
|
51
|
+
Jekyll::Validator.call(file) unless excluded&.any? { |path| file.include?(path) }
|
|
50
52
|
end
|
|
51
53
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicholas Wieland
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|