Asciidoc merge request (#2128)

* - added classes for asciidoctor article
- added tests for that article
- added exclusion in pom.xml in libraries

* - fixed test

* - fixed formating in pom

* - added dependency to the pom.xml
- created plugin in pom.xml
This commit is contained in:
Ante Pocedulic 2017-06-22 17:44:00 +02:00 committed by Grzegorz Piwowarek
parent 87049b63f4
commit 2cde0e37c2
3 changed files with 24 additions and 0 deletions

View File

@ -70,6 +70,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.5</version>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
<outputDirectory>target/docs/asciidoc</outputDirectory>
<backend>html</backend>
<doctype>book</doctype>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -0,0 +1,3 @@
== Introduction Section
Hi. I'm a simple test to see if this Maven build is working. If you see me in nice HTML, then it means everything is [red]#working#.

View File

@ -23,6 +23,7 @@ public class AsciidoctorDemo {
.backend("pdf")
.asMap();
final String outfile = asciidoctor.convertFile(new File("sample.adoc"), options);
}