You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
434 B
12 lines
434 B
require 'asciidoctor' |
|
require 'erb' |
|
require './src/main/ruby/readme.rb' |
|
|
|
options = {:mkdirs => true, :safe => :unsafe, :attributes => 'linkcss'} |
|
|
|
guard 'shell' do |
|
watch(/^src\/[A-Za-z].*\.adoc$/) {|m| |
|
SpringCloud::Build.render_file('src/main/asciidoc/README.adoc', :to_file => './README.adoc') |
|
Asciidoctor.render_file('src/main/asciidoc/spring-cloud-netflix.adoc', options.merge(:to_dir => 'target/generated-docs')) |
|
} |
|
end
|
|
|