jekyll-semtree 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-semtree/version.rb +1 -1
- data/lib/jekyll-semtree.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45680543ef4121289d217b25451ff65a73c14399018f98275b9d8c08dcf91b22
|
4
|
+
data.tar.gz: 1d99a3e6062a15c75414770ac22e4ca88ff9b9c566b57ca2e2871f1358200495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e34f0d3b31cc635c6163bca4a7fdfbde0e23c6e98a458cd8310bc4a8d78a07877e26bf6206806d8d63a2a2530fb945350b746e4d0a88e9101f7e4c52dd8c3588
|
7
|
+
data.tar.gz: 646df65358f1ea451c8e597bc74a956e943e32d3bbf5601d229ecabe58d7e4b4d423f47f61477f8729bd3d6baede280fedee93c9144dca5fd54f0b4561edf372
|
data/lib/jekyll-semtree.rb
CHANGED
@@ -70,6 +70,10 @@ module Jekyll
|
|
70
70
|
if tree_hash.empty?
|
71
71
|
Jekyll.logger.error("Jekyll-SemTree: No trunk (index docs) detected.")
|
72
72
|
end
|
73
|
+
if root_doc.nil? || index_docs.empty? || tree_hash.empty?
|
74
|
+
Jekyll.logger.error("Jekyll-SemTree: Unable to build semantic tree.")
|
75
|
+
return
|
76
|
+
end
|
73
77
|
# build tree
|
74
78
|
@site.tree = Tree.new(tree_hash, root_doc, option_virtual_trunk)
|
75
79
|
|