Skip to content

Commit

Permalink
Add link to github in rendered docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Syer committed Mar 20, 2015
1 parent 1c54e6b commit 3ba7cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Guardfile
@@ -1,10 +1,10 @@
require 'asciidoctor'
require 'erb'

options = {:mkdirs => true, :safe => :unsafe, :attributes => 'linkcss'}
options = {:mkdirs => true, :safe => :unsafe, :attributes => ['linkcss', 'allow-uri-read']}

guard 'shell' do
watch(/^docs\/[A-Za-z].*\.adoc$/) {|m|
watch(/^docs\/[A-Z-a-z][^#]*\.adoc$/) {|m|
Asciidoctor.load_file('docs/src/main/asciidoc/README.adoc', :to_file => './README.adoc', safe: :safe, parse: false, attributes: 'allow-uri-read')
Asciidoctor.render_file('docs/src/main/asciidoc/spring-cloud-netflix.adoc', options.merge(:to_dir => 'target/generated-docs'))
}
Expand Down

0 comments on commit 3ba7cfb

Please sign in to comment.