no-style-please2-plugins 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enc.rb +3 -3
- data/lib/ext.rb +18 -6
- data/lib/version/version.rb +1 -1
- 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: ab334d2c482d4209e3ba73781eacd5f3b0f5e1735500d879de12555f9e156df3
|
4
|
+
data.tar.gz: 23eb54db2441640193bde976518f504630651305581d21d2e66eaa9008220e67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fc8b380faf95c98d75ca79360e9a9ddd472900a30ff9eb8e92408ed33e89a51a56dbfd542daac121d326f97bc75c5f5f68f8f21e97ff1fa436f5e058998d3b
|
7
|
+
data.tar.gz: ec8a98db075fb514a7a515e56c3c5f02193b49a9ebf8cad63af566d0e80ef604c98633aded8063bba993ffe23e3e1f448000df5f732ad8f749ea15618cf368a0
|
data/lib/enc.rb
CHANGED
@@ -111,14 +111,14 @@ module Jekyll
|
|
111
111
|
# 如果内容不同,则写入新内容
|
112
112
|
unless current_content == new_content
|
113
113
|
File.write(file_path, new_content)
|
114
|
-
puts "
|
114
|
+
puts "write file" + file_path
|
115
115
|
else
|
116
|
-
puts "
|
116
|
+
puts "write file: same, skip " + file_path
|
117
117
|
end
|
118
118
|
else
|
119
119
|
# 文件不存在,直接写入
|
120
120
|
File.write(file_path, new_content)
|
121
|
-
puts "
|
121
|
+
puts "write file" + file_path
|
122
122
|
end
|
123
123
|
return ''
|
124
124
|
end
|
data/lib/ext.rb
CHANGED
@@ -249,12 +249,7 @@ end
|
|
249
249
|
|
250
250
|
Jekyll::Hooks.register :site, :after_init do |st|
|
251
251
|
# code to call after Jekyll renders a page
|
252
|
-
|
253
|
-
if !File.file?(filename)
|
254
|
-
tagTmp = "---\nlayout: paginate\n---"
|
255
|
-
File.open(filename , 'w+') { |f| f.write(tagTmp) }
|
256
|
-
print 'generate ' + filename
|
257
|
-
end
|
252
|
+
|
258
253
|
|
259
254
|
assets = 'assets'
|
260
255
|
|
@@ -270,6 +265,23 @@ end
|
|
270
265
|
FileUtils.mkdir(dynpath)
|
271
266
|
|
272
267
|
|
268
|
+
filename = 'index.html'
|
269
|
+
if !File.file?(filename)
|
270
|
+
tagTmp = "---\nlayout: paginate\n---"
|
271
|
+
File.open(filename , 'w+') { |f| f.write(tagTmp) }
|
272
|
+
print 'generate ' + filename
|
273
|
+
end
|
274
|
+
|
275
|
+
filename = 'HeatMap.md'
|
276
|
+
if !File.file?(filename)
|
277
|
+
tagTmp = "---\nlayout: heatmap\n---"
|
278
|
+
File.open(filename , 'w+') { |f| f.write(tagTmp) }
|
279
|
+
print 'heatmpa ' + filename
|
280
|
+
end
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
273
285
|
end
|
274
286
|
|
275
287
|
end
|
data/lib/version/version.rb
CHANGED