Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.5k
Expand file tree
/
Copy pathRakefile
More file actions
Latest commit
38 lines (32 loc) · 951 Bytes
/
Copy pathRakefile
File metadata and controls
38 lines (32 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require'html-proofer'
require'jekyll'
Rake.application.options.trace=true
desc'Remove all generated files: destination folder, metadata file, Sass and Jekyll caches.'
task:cleando
Jekyll::Commands::Clean.process({})
end
desc'Build and serve the site'
taskserve: [:build]do
Jekyll::Commands::Serve.process({})
end
desc'Build the site'
taskbuild: [:clean]do
Jekyll::Commands::Build.process({})
end
desc'Build and test the site'
tasktest: [:build]do
options={
:check_html=>true,# Validate HTML
:empty_alt_ignore=>false,# Allow images with empty alt tags
:check_favicon=>true,# Check whether favicons are valid
:check_img_http=>true,# Enforce that images use HTTPS
typhoeus: {
headers: {
# This is required to validate links to docs.github.com
"Accept-Encoding"=>"gzip",
}
}
}
HTMLProofer.check_directory("./_site",options).run
end
taskdefault: :test