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: 291f038625570c178a4e58813881537381b6e4dea76a7c809afa81d8bdb61652
4
- data.tar.gz: 61d93f75fab9e2c5439ec911aec644aede26d46d06133d41a26928909bd8c613
3
+ metadata.gz: e83f3955f389b7c68a14f1bc574ce3a969fdf51ddc526269d855840a5a3a9d12
4
+ data.tar.gz: 9ed8549479995cd90b73cb4ece162b52cbbadaad4a9a5b53bf017a9693a0b072
5
5
  SHA512:
6
- metadata.gz: a0077304e6568c54fe0d1c35c46828ede6923afea813e0f025e9919fa260215181ec99da6555a06079477d02b05d1269df840f8df607251160d12ca8f18eb38b
7
- data.tar.gz: 0d90da1b4297d5064d9b889cd94ae88c74f83bded0031a728bc6d2b9dc308e761d1214cb8308adc6e6b3a693a12529ca57a37477e0e2c48074e497351cbc6c78
6
+ metadata.gz: c6c0fcfe8a8e027bc789c31b4be70fcf2d339236f9dda8efb5422f2565b6e866f960b35e38470e3be6ab6cd9eeeed3ca9ee6537e23124666737e3dd53917b8b9
7
+ data.tar.gz: e204bb2f72989b5e15c3c6671f1d5a6ae8a7dc7f41dba352be49d78246105e2e82c5a755665860bc3770a7f83cf3955963b0d62ff0fe7e938d771db6d920ed11
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jekyll-theme-open-project-helpers'
5
- s.version = '1.0.8'
5
+ s.version = '1.0.9'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -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
- doc = Jekyll::Document.new(path, :site => @site, :collection => collection)
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
- # Read all docs for hub site only when the repo is freshly initialized,
130
- # for project sites always. A workaround for #4 pending proper solution.
131
- if !@site.config['is_hub'] or docs_checkout[:newly_initialized]
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.8
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-21 00:00:00.000000000 Z
11
+ date: 2018-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll