Add skeleton docs
This commit is contained in:
11
Guardfile
Normal file
11
Guardfile
Normal file
@@ -0,0 +1,11 @@
|
||||
require 'asciidoctor'
|
||||
require 'erb'
|
||||
|
||||
options = {:mkdirs => true, :safe => :unsafe, :attributes => 'linkcss'}
|
||||
|
||||
guard 'shell' do
|
||||
watch(/^[A-Za-z].*\.adoc$/) {|m|
|
||||
Asciidoctor.render_file('src/main/adoc/README.adoc', options.merge(:to_file => './README.md'))
|
||||
Asciidoctor.render_file('src/main/adoc/spring-cloud-cli.adoc', options.merge(:to_dir => 'target/docs'))
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user