Guardfile 608 B

123456789101112
  1. require 'asciidoctor'
  2. require 'erb'
  3. guard 'shell' do
  4. watch(/^.*\.adoc$/) {|m|
  5. Asciidoctor.render_file(m[0], :to_dir => "build/", :safe => Asciidoctor::SafeMode::UNSAFE, :attributes=> {'idprefix' => '', 'idseparator' => '-', 'copycss' => '', 'icons' => 'font', 'source-highlighter' => 'prettify', 'sectanchors' => '', 'doctype' => 'book','toc2' => '', 'spring-security-version' => '3.2.0.CI-SNAPSHOT','spring-version' => '3.2.0.RELEASE','spring4-version' => '4.0.0.RELEASE', 'revnumber' => '3.2.0.CI-SNAPSHOT', 'numbered'=>'' })
  6. }
  7. end
  8. guard 'livereload' do
  9. watch(%r{build/.+\.(css|js|html)$})
  10. end