From 355d28d28a7992bff87d0e7cfc0da71c159d63a6 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 20 Mar 2015 11:48:40 +0000 Subject: [PATCH] Add links in docs --- Guardfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) }