This week AsciidoctorJ 1.5.2 has been released. It contains several big fixes and also one really important internal change, now the build is done using Gradle and relased using Bintray.
But there is two new features that people waits so much, and it is the integration with asciidoctor-pdf and asciidoctor-epub3. Now you can set backend as pdf in asciidoctorJ. Let's see an easy example:
First of all you need to set asciidoctorj-pdf artifact in your pom in front of asciidoctorJ.
And then you can use AsciidoctorJ as usually.
The execution of previous code will create a sample.pdf file in the same location as sample.adoc.
And for asciidoctorj-epub3 it is almost the same. But with one particularity, you need to create an index file which includes the document to be rendered.
Index file looks like:
And the content itself:
And finally the invocation:
And in this case an epub3 document is generated.
In both cases so easy, add a dependency and you are ready to use them as backends.
We keep learning,
Old, but I'm not that old. Young, but I'm not that bold. And I don't think the world is sold. I'm just doing what we're told. (Counring stars - OneRepublic)