forked from Farata/EnterpriseWebBook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Guardfile
23 lines (21 loc) · 797 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'asciidoctor'
require 'erb'
guard 'shell' do
watch(/.*\.asciidoc$/) {|m|
Asciidoctor.render_file(m[0],
:in_place => true,
:safe =>10,
:attributes => {
'source-highlighter' => 'highlightjs',
'backend' => 'html5',
'stylesheet'=> './stylesheets/colony.css'
#'stylesheet'=> './stylesheets/asciidoctor.css'
#'stylesheet'=> './stylesheets/foundation.css'
})
}
end
# uncomment this 3 lines to use LiveReload
# Chrome extension http://goo.gl/wNPKB
guard 'livereload' do
watch(%r{^.+\.(css|js|html)$})
end