forked from Farata/EnterpriseWebBook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File monitoring configuration with guard and asciidoctor (+bundler config file for downloading required gems). Added stylesheets for local document preview. Updated .gitignore.
- Loading branch information
Showing
6 changed files
with
1,633 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.preview* | ||
.metadata* | ||
.metadata* | ||
ch*.html | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'guard' | ||
gem 'guard-shell' | ||
# gem 'rb-inotify' - linux | ||
gem 'rb-fsevent' # mac os x | ||
gem 'asciidoctor' | ||
gem 'guard-livereload' | ||
gem 'yajl-ruby' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/riak.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 |
Oops, something went wrong.