jekyll-theme-open-project-helpers 1.1.25 → 1.1.26
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: db07c0a1afe36e732a1292950698e1427070135cb9f02d3a4f1859902de8a680
|
4
|
+
data.tar.gz: 8cf987acd1d5789f3e3a4b7840697f170053e4af96b7bf48681b1d04ca644c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 125cc7bc72c4b67d7eddc3959063c33c2d89bbfda2a48b10a833aa9b2d0fb8b952190c469f9dda1193dbb94c3f906262c696eb8e8eef65d90a47a091c66e3f51
|
7
|
+
data.tar.gz: 6bf8d4e8f443622a01fe4d03ecc7724d522dc2f8d8dea4bb974cd56965b0f977acbf84c95a00080804a223f086d51a5720fe2c56389b5d32959cfd9e676bb4ab
|
@@ -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
|
-
|
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.
|
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
|
+
date: 2018-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|