This repository contains a collection of sample projects that demonstrate numerous ways to use the Asciidoctor Maven plugin in a Maven project.
Clone the example repository using git:
$ git clone https://github.com/asciidoctor/asciidoctor-maven-examples
Refer to the README file in each individual project to learn how to run it.
- asciidoc-to-html-example (aka “The Quickstart”)
-
Demonstrates how to convert AsciiDoc to HTML5 using the Asciidoctor Maven plugin.
- docbook-pipeline-docbkx-example
-
Demonstrates how to convert AsciiDoc to DocBook and feed it to the DocBook pipeline to generate a PDF using the Asciidoctor and Docbkx Maven plugins.
- docbook-pipeline-jdocbook-example
-
Demonstrates how to convert AsciiDoc to DocBook and feed it to the DocBook pipeline to generate a PDF using the Asciidoctor and jDocBook Maven plugins.
- asciidoctor-diagram-example
-
Demonstrates how to integrate Asciidoctor Diagram with the Asciidoctor Maven plugin.
- asciidoc-to-pdf-example
-
Demonstrates how to convert AsciiDoc to PDF using Asciidoctor PDF with the Asciidoctor Maven plugin.
- asciidoc-site-example
-
Demonstrates how to process AsciiDoc in a Maven site using the Asciidoctor Maven plugin.
- asciidoc-multiple-inputs-example
-
An example project that demonstrates how to convert multiple input AsciiDoc documents to HTML5 and PDF using the Asciidoctor Maven plugin.
In case it is required to test a specific version of the plugin (e.g. local SNAPSHOT version), a tool has been included to update the version in all examples. To change the plugin’s version follow the next steps:
-
Set the desired version in the <asciidoctor.maven.plugin.version> property in the pom.xml file located at the root (asciidoctor-maven-examples folder). For instance:
<asciidoctor.maven.plugin.version>1.5.2</asciidoctor.maven.plugin.version>
-
Execute the validate maven goal with the update-properties profile:
$ mvn validate -Pupdate-properties
Copyright © 2014 The Asciidoctor Project. Free use of this software is granted under the terms of the MIT License.
See the LICENSE.adoc file for details.