Add link to github in rendered docs

This commit is contained in:
Dave Syer
2015-03-20 11:46:14 +00:00
parent ecd7903e9f
commit 77a4801cd7
4 changed files with 70 additions and 6 deletions

View File

@@ -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-cli.adoc', options.merge(:to_dir => 'target/generated-docs'))
}