jekyll-theme-open-project-helpers 1.1.25 → 1.1.26

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: c192c0b3ad2c0a163331115f647f7d40821573c0b519ea879c90f4309bbe1ffb
4
- data.tar.gz: e02887c7c4e8c046d2ebf3a06cf659b4fc744f8cc6ca7c40c9bbd8657ace5d23
3
+ metadata.gz: db07c0a1afe36e732a1292950698e1427070135cb9f02d3a4f1859902de8a680
4
+ data.tar.gz: 8cf987acd1d5789f3e3a4b7840697f170053e4af96b7bf48681b1d04ca644c9d
5
5
  SHA512:
6
- metadata.gz: 664b3e7464608435eb4dac2f31b75413279297d2894d391bcf04baf316d400bed0c35f1813b7373093c153c8dc1aa68ba5b54d23eda2b174d8c7bb8248c9dc8a
7
- data.tar.gz: 1adce0e0cf30a8284797ce9464caf33d2662864a025d0c2d5915227020971ca61878ba70d16aaf5c27b6ae6250e86bffb726223766fe458fbfdd0a57f075ab19
6
+ metadata.gz: 125cc7bc72c4b67d7eddc3959063c33c2d89bbfda2a48b10a833aa9b2d0fb8b952190c469f9dda1193dbb94c3f906262c696eb8e8eef65d90a47a091c66e3f51
7
+ data.tar.gz: 6bf8d4e8f443622a01fe4d03ecc7724d522dc2f8d8dea4bb974cd56965b0f977acbf84c95a00080804a223f086d51a5720fe2c56389b5d32959cfd9e676bb4ab
@@ -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.1.25'
5
+ s.version = '1.1.26'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -177,16 +177,12 @@ module Jekyll
177
177
  entry_points.each do |index_doc|
178
178
  item_name = index_doc.id.split('/')[-1]
179
179
 
180
- if index_doc.data.key?('docs') and index_doc.data['docs']['git_repo_url']
181
- sw_docs_repo = index_doc.data['docs']['git_repo_url']
182
- sw_docs_subtree = index_doc.data['docs']['git_repo_subtree'] || DEFAULT_DOCS_SUBTREE
183
- else
184
- sw_docs_repo = index_doc.data['repo_url']
185
- sw_docs_subtree = DEFAULT_DOCS_SUBTREE
186
- end
187
-
180
+ docs = index_doc.data['docs']
188
181
  main_repo = index_doc.data['repo_url']
189
182
 
183
+ sw_docs_repo = (if docs then docs['git_repo_url'] end) || main_repo
184
+ sw_docs_subtree = (if docs then docs['git_repo_subtree'] end) || DEFAULT_DOCS_SUBTREE
185
+
190
186
  docs_path = "#{index_doc.path.split('/')[0..-2].join('/')}/#{item_name}"
191
187
 
192
188
  begin
@@ -40,16 +40,22 @@ module Builder
40
40
 
41
41
  nav_item = spec_info.data['navigation']['sections'].map { |section|
42
42
  section['items']
43
- } .flatten.select { |item| item['path'] == png_name_noext} [0].clone
43
+ } .flatten.select { |item| item['path'] == png_name_noext } [0].clone
44
44
 
45
45
  png_dimensions = FastImage.size(pngfile)
46
46
  data = spec_info.data.clone
47
47
  data['image_path'] = "/#{spec_root}/images/#{png_name}"
48
48
  data['image_width'] = png_dimensions[0]
49
49
  data['image_height'] = png_dimensions[1]
50
+
51
+ if nav_item == nil
52
+ raise "Navigation item matching #{png_name} (#{spec_root}) was not found"
53
+ end
54
+
50
55
  data = data.merge(nav_item)
51
56
 
52
57
  data['title'] = "#{spec_info['title']}: #{nav_item['title']}"
58
+ data['article_header_title'] = "#{nav_item['title']}"
53
59
 
54
60
  page = PngDiagramPage.new(
55
61
  site,
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.1.25
4
+ version: 1.1.26
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-11-26 00:00:00.000000000 Z
11
+ date: 2018-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll