mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Generate html, pdf and epub documentation using asciidoctor+docbook. See gh-295
21 lines
423 B
Ruby
21 lines
423 B
Ruby
require 'asciidoctor'
|
|
require 'erb'
|
|
|
|
guard 'shell' do
|
|
watch(/.*\.adoc$/) {|m|
|
|
Asciidoctor.render_file('index.adoc', \
|
|
:in_place => true, \
|
|
:safe => Asciidoctor::SafeMode::UNSAFE, \
|
|
:attributes=> { \
|
|
'source-highlighter' => 'prettify', \
|
|
'icons' => 'font', \
|
|
'linkcss'=> 'true', \
|
|
'copycss' => 'true', \
|
|
'doctype' => 'book'})
|
|
}
|
|
end
|
|
|
|
guard 'livereload' do
|
|
watch(%r{^.+\.(css|js|html)$})
|
|
end
|