Skip to content

Commit 1df3751

Browse files
committed
Add Rakefile
1 parent b283f8e commit 1df3751

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Rakefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# coding: utf-8
2+
require 'jekyll'
3+
4+
# Extend string to allow for bold text.
5+
class String
6+
def bold
7+
"\033[1m#{self}\033[0m"
8+
end
9+
end
10+
11+
# Rake Jekyll tasks
12+
task :build do
13+
puts 'Building site...'.bold
14+
Jekyll::Commands::Build.process(profile: true)
15+
end
16+
17+
task :clean do
18+
puts 'Cleaning up _site...'.bold
19+
Jekyll::Commands::Clean.process({})
20+
end

0 commit comments

Comments
 (0)