diff --git a/Guardfile b/Guardfile index f2d3f31..2b30e29 100644 --- a/Guardfile +++ b/Guardfile @@ -2,10 +2,10 @@ require 'asciidoctor' require 'erb' require './src/main/ruby/readme.rb' -options = {:mkdirs => true, :safe => :unsafe, :attributes => 'linkcss'} +options = {:mkdirs => true, :safe => :unsafe, :attributes => ['linkcss', 'allow-uri-read']} guard 'shell' do - watch(/^src\/[A-Za-z].*\.adoc$/) {|m| + watch(/^src\/[A-Z-a-z][^#]*\.adoc$/) {|m| SpringCloud::Build.render_file('src/main/asciidoc/README.adoc', :to_file => './README.adoc') Asciidoctor.render_file('src/main/asciidoc/spring-cloud-cloudfoundry.adoc', options.merge(:to_dir => 'target/generated-docs')) }