jekyll-local-theme 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/jekyll/local_theme/theme.rb +5 -5
- data/lib/jekyll/local_theme/version.rb +1 -1
- data/lib/jekyll/local_theme.rb +6 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00fef92712fd20dc68176d7ed08c8c96946d042395b266518d2ff6f5404447a6
|
4
|
+
data.tar.gz: 68c8bc9195f6a3036acaa70bfa44385ce9717f791a3ea3065d33226bf67e7b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612620c55a760df07041cfb4fea45418f6ac042aada3cb9f1e9084b5824410f6006b35340c56cfea247d8d5290c3c02464384f896616f61d0e83e2d0051f2974
|
7
|
+
data.tar.gz: aa755030aa4b8b5a9bc0cd0ebfdae6e436b31ad49a66f775043ef52e5550b4aba3968e1381ea5671261aa37ed865bdba193fa88646fe24d896c99bf74c8edb4d
|
data/LICENSE
CHANGED
@@ -6,19 +6,19 @@ module Jekyll
|
|
6
6
|
module LocalTheme
|
7
7
|
# The local {Theme} on file system.
|
8
8
|
class Theme < Jekyll::Theme
|
9
|
-
def initialize(
|
10
|
-
gemspec = Gem::Util.glob_files_in_dir(
|
9
|
+
def initialize(root)
|
10
|
+
gemspec = Gem::Util.glob_files_in_dir(Bundler::Source::Path::DEFAULT_GLOB, root)
|
11
11
|
.min_by { |p| -p.split(File::SEPARATOR).size }
|
12
12
|
|
13
13
|
if gemspec
|
14
14
|
@gemspec = Bundler.load_gemspec_uncached(gemspec)
|
15
|
-
@gemspec.full_gem_path =
|
15
|
+
@gemspec.full_gem_path = File.dirname(gemspec)
|
16
16
|
else
|
17
|
-
@gemspec = Gem::Specification.new
|
17
|
+
@gemspec = Gem::Specification.new(File.basename(root))
|
18
18
|
@gemspec.full_gem_path = root
|
19
19
|
end
|
20
20
|
|
21
|
-
super(name)
|
21
|
+
super(@gemspec.name)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
data/lib/jekyll/local_theme.rb
CHANGED
@@ -9,13 +9,14 @@ module Jekyll
|
|
9
9
|
module_function
|
10
10
|
|
11
11
|
def init(site)
|
12
|
-
|
13
|
-
return unless
|
12
|
+
path = site.config['local_theme']
|
13
|
+
return unless path
|
14
14
|
|
15
|
-
site.
|
16
|
-
site.theme =
|
15
|
+
theme = Theme.new(Jekyll.sanitized_path(Jekyll.sanitized_path(site.source, '_themes'), path))
|
16
|
+
site.theme = theme
|
17
|
+
site.config['theme'] = theme.name
|
17
18
|
|
18
|
-
Jekyll.logger.info 'Local theme:',
|
19
|
+
Jekyll.logger.info 'Local theme:', theme.root
|
19
20
|
|
20
21
|
site.send(:configure_include_paths)
|
21
22
|
site.plugin_manager.require_theme_deps
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-local-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,8 +56,8 @@ licenses:
|
|
56
56
|
- MIT
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/ntkme/jekyll-local-theme/issues
|
59
|
-
documentation_uri: https://rubydoc.info/gems/jekyll-local-theme/0.
|
60
|
-
source_code_uri: https://github.com/ntkme/jekyll-local-theme/tree/
|
59
|
+
documentation_uri: https://rubydoc.info/gems/jekyll-local-theme/1.0.0
|
60
|
+
source_code_uri: https://github.com/ntkme/jekyll-local-theme/tree/v1.0.0
|
61
61
|
funding_uri: https://github.com/sponsors/ntkme
|
62
62
|
rubygems_mfa_required: 'true'
|
63
63
|
post_install_message:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 3.2.0
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.9
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Jekyll plugin for building Jekyll sites with any local theme
|