@@ -34,7 +34,7 @@ task :generate do
34
34
Rake ::Task [ :build ] . invoke
35
35
end
36
36
37
- desc "Serves the Jekyll site locally"
37
+ desc "Serve the Jekyll site locally"
38
38
task :serve do
39
39
sh "rackup config.ru"
40
40
end
@@ -77,7 +77,7 @@ namespace :new_post do
77
77
end
78
78
end
79
79
80
- desc "Creates a news post template for language `lang'"
80
+ desc "Create a news post template for language `lang'"
81
81
task :lang do
82
82
puts 'Please specify one of the valid language codes:'
83
83
puts LANGUAGES . join ( ', ' ) << '.'
@@ -117,7 +117,7 @@ namespace :check do
117
117
date ? date . getutc . strftime ( '%Y/%m/%d' ) : nil
118
118
end
119
119
120
- desc "Checks for missing author variables in news posts"
120
+ desc "Check for missing author variables in news posts"
121
121
task :author do
122
122
print "Checking for missing author variables in news posts..."
123
123
@@ -132,7 +132,7 @@ namespace :check do
132
132
end
133
133
end
134
134
135
- desc "Checks for missing lang variables in markdown files"
135
+ desc "Check for missing lang variables in markdown files"
136
136
task :lang do
137
137
print "Checking for missing lang variables in markdown files..."
138
138
@@ -152,7 +152,7 @@ namespace :check do
152
152
end
153
153
end
154
154
155
- desc "Checks publication dates (UTC) for consistency with filename"
155
+ desc "Check publication dates (UTC) for consistency with filename"
156
156
task :pubdates do
157
157
print "Checking for date mismatch in posts (filename / YAML front matter)..."
158
158
@@ -176,7 +176,7 @@ namespace :check do
176
176
177
177
localport = 9292
178
178
179
- desc "Checks for broken links on http://localhost:#{ localport } /"
179
+ desc "Check for broken links on http://localhost:#{ localport } /"
180
180
task :links do
181
181
gem 'spidr' , '~> 0.4'
182
182
require 'spidr'
@@ -213,7 +213,7 @@ namespace :check do
213
213
end
214
214
end
215
215
216
- desc 'validate _site markup with validate-website'
216
+ desc 'Validate _site markup with validate-website'
217
217
task :markup => :build do
218
218
require 'jekyll'
219
219
options = Jekyll . configuration
@@ -224,5 +224,5 @@ namespace :check do
224
224
end
225
225
end
226
226
227
- desc "Carries out some tests"
227
+ desc "Run some tests (lang, author, pubdates) "
228
228
task :check => [ 'check:lang' , 'check:author' , 'check:pubdates' ]
0 commit comments