jekyll-theme-open-project-helpers 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83f3955f389b7c68a14f1bc574ce3a969fdf51ddc526269d855840a5a3a9d12
|
4
|
+
data.tar.gz: 9ed8549479995cd90b73cb4ece162b52cbbadaad4a9a5b53bf017a9693a0b072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6c0fcfe8a8e027bc789c31b4be70fcf2d339236f9dda8efb5422f2565b6e866f960b35e38470e3be6ab6cd9eeeed3ca9ee6537e23124666737e3dd53917b8b9
|
7
|
+
data.tar.gz: e204bb2f72989b5e15c3c6671f1d5a6ae8a7dc7f41dba352be49d78246105e2e82c5a755665860bc3770a7f83cf3955963b0d62ff0fe7e938d771db6d920ed11
|
@@ -5,6 +5,13 @@ module Jekyll
|
|
5
5
|
|
6
6
|
DEFAULT_DOCS_SUBTREE = 'docs'
|
7
7
|
|
8
|
+
class NonLiquidDocument < Jekyll::Document
|
9
|
+
def render_with_liquid?
|
10
|
+
p 'render liquid?'
|
11
|
+
return false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
8
15
|
class CollectionDocReader < Jekyll::DataReader
|
9
16
|
|
10
17
|
def read(dir, collection)
|
@@ -27,7 +34,9 @@ module Jekyll
|
|
27
34
|
elsif nested or (File.basename(entry, '.*') != 'index')
|
28
35
|
ext = File.extname(path)
|
29
36
|
if ['.adoc', '.md', '.markdown', '.html'].include? ext
|
30
|
-
|
37
|
+
p 'making a doc'
|
38
|
+
doc = NonLiquidDocument.new(path, :site => @site, :collection => collection)
|
39
|
+
p 'made a doc'
|
31
40
|
doc.read
|
32
41
|
collection.docs << doc
|
33
42
|
else
|
@@ -126,13 +135,9 @@ module Jekyll
|
|
126
135
|
begin
|
127
136
|
docs_checkout = git_shallow_checkout(docs_path, docs_repo, [docs_subtree])
|
128
137
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
CollectionDocReader.new(site).read(
|
133
|
-
docs_checkout[:docs_path],
|
134
|
-
@site.collections[collection_name])
|
135
|
-
end
|
138
|
+
CollectionDocReader.new(site).read(
|
139
|
+
docs_checkout[:docs_path],
|
140
|
+
@site.collections[collection_name])
|
136
141
|
|
137
142
|
rescue
|
138
143
|
docs_checkout = nil
|
@@ -186,9 +191,9 @@ module Jekyll
|
|
186
191
|
|
187
192
|
end
|
188
193
|
|
189
|
-
repo.fetch('origin', { :depth => 1 })
|
190
|
-
repo.reset_hard
|
191
|
-
repo.checkout('origin/master', { :f => true })
|
194
|
+
#repo.fetch('origin', { :depth => 1 })
|
195
|
+
#repo.reset_hard
|
196
|
+
#repo.checkout('origin/master', { :f => true })
|
192
197
|
|
193
198
|
latest_commit = repo.gcommit('HEAD')
|
194
199
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-open-project-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|