jekyll-theme-open-project-helpers 1.0.0.rc2 → 1.0.0.rc3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 498d821d48e4e9aede7a1fe07626609d0659e8cf
|
4
|
+
data.tar.gz: cead8af8a560cf3b42e99512f447fc1d722f581d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710d9a5d4561baa114daf48a3b75bc4b8e176826da9bf71da7602ad359bfe8af46c72ea1252f96aced9545d26291a515d3e7ad8250a8146c80b9002059c8e6de
|
7
|
+
data.tar.gz: 650f554f122170c80ad5af1d1bba922f8b3302600203e6dd04f5bb7db8852216b398f3b089d06e5aab65326a3201a20fa2ec2b15e974e4b830b26cedba93a9e8
|
@@ -27,7 +27,7 @@ class CollectionDocReader < Jekyll::DataReader
|
|
27
27
|
return unless File.directory?(dir) && !@entry_filter.symlink?(dir)
|
28
28
|
|
29
29
|
entries = Dir.chdir(dir) do
|
30
|
-
Dir["*.{md,markdown,html}"] + Dir["*"].select { |fn| File.directory?(fn) }
|
30
|
+
Dir["*.{md,markdown,html,svg,png}"] + Dir["*"].select { |fn| File.directory?(fn) }
|
31
31
|
end
|
32
32
|
|
33
33
|
entries.each do |entry|
|
@@ -35,10 +35,21 @@ class CollectionDocReader < Jekyll::DataReader
|
|
35
35
|
|
36
36
|
if File.directory?(path)
|
37
37
|
read_project_subdir(path, collection, nested=true)
|
38
|
+
|
38
39
|
elsif nested or (File.basename(entry, '.*') != 'index')
|
39
|
-
|
40
|
-
|
41
|
-
|
40
|
+
ext = File.extname(path)
|
41
|
+
if ['.md', '.markdown', '.html'].include? ext
|
42
|
+
doc = Jekyll::Document.new(path, :site => @site, :collection => collection)
|
43
|
+
doc.read
|
44
|
+
collection.docs << doc
|
45
|
+
else
|
46
|
+
collection.files << Jekyll::StaticFile.new(
|
47
|
+
@site,
|
48
|
+
@site.source,
|
49
|
+
Pathname.new(File.dirname(path)).relative_path_from(Pathname.new(@site.source)).to_s,
|
50
|
+
File.basename(path),
|
51
|
+
collection)
|
52
|
+
end
|
42
53
|
end
|
43
54
|
end
|
44
55
|
end
|