mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-09-08 20:51:41 +00:00
16 lines
704 B
Ruby
16 lines
704 B
Ruby
require 'asciidoctor'
|
|
require 'erb'
|
|
|
|
guard 'shell' do
|
|
watch(/^.*\.asc$/) {|m|
|
|
Asciidoctor.render_file(m[0], :to_dir => "build/", :safe => Asciidoctor::SafeMode::UNSAFE, :attributes=> {'toc' => '', 'idprefix' => '', 'idseparator' => '-', 'copycss' => '', 'icons' => 'font', 'source-highlighter' => 'prettify', 'sectanchors' => '', 'toc-placement' => 'preamble', 'revnumber' => '3.2.0.CI-SNAPSHOT',
|
|
'spring-security-version' => '3.2.0.CI-SNAPSHOT',
|
|
'download-url' => 'https://github.com/SpringSource/spring-security/archive/master.zip',
|
|
'include-maven-repository' => '_includes/maven-repository-snapshot.asc' })
|
|
}
|
|
end
|
|
|
|
guard 'livereload' do
|
|
watch(%r{build/.+\.(css|js|html)$})
|
|
end
|