asciidoctor / Asciidoctor Maven Plugin
Programming Languages
= Asciidoctor Maven Plugin // Metadata :release-version: 2.1.0 :docs-version: 2.1 :maven-site-plugin-version: 3.9.0 // Settings :idprefix: :idseparator: - ifdef::env-github,env-browser[] :toc: preamble endif::[] ifndef::env-github[:icons: font] // URIs :project-repo: asciidoctor/asciidoctor-maven-plugin :uri-repo: https://github.com/{project-repo} :uri-asciidoc: http://asciidoc.org :uri-asciidoctor: http://asciidoctor.org :uri-examples: https://github.com/asciidoctor/asciidoctor-maven-examples :uri-maven: http://maven.apache.org :uri-license: {uri-repo}/blob/master/LICENSE.txt :uri-docs: https://asciidoctor.github.io/asciidoctor-maven-plugin/maven-tools/{docs-version} // GitHub customization ifdef::env-github[] :badges: :tag: master :!toc-title: :tip-caption: 💡 :note-caption: 📎 :important-caption: ❗️ :caution-caption: 🔥 :warning-caption: ⚠️ endif::[]
// Badges ifdef::badges[] image:https://ci.appveyor.com/api/projects/status/chebmu91f08dlmsc/branch/master?svg=true["Build Status (AppVeyor)", link="https://ci.appveyor.com/project/asciidoctor/asciidoctor-maven-plugin"] image:http://img.shields.io/travis/asciidoctor/asciidoctor-maven-plugin/master.svg["Build Status (Travis CI)", link="https://travis-ci.org/asciidoctor/asciidoctor-maven-plugin"] image:{uri-repo}/workflows/Build/badge.svg[Build Status,link={uri-repo}/actions] image:http://img.shields.io/coveralls/{project-repo}/master.svg["Coverage Status", link="https://coveralls.io/r/{project-repo}?branch=master"] image:https://maven-badges.herokuapp.com/maven-central/org.asciidoctor/asciidoctor-maven-plugin/badge.svg["Maven Central",link="https://maven-badges.herokuapp.com/maven-central/org.asciidoctor/asciidoctor-maven-plugin"] image:https://img.shields.io/badge/zulip-join_chat-brightgreen.svg[project chat,link=https://asciidoctor.zulipchat.com/] endif::[]
The Asciidoctor Maven Plugin is the official way to convert your {uri-asciidoc}[AsciiDoc] documentation using {uri-asciidoctor}[Asciidoctor] from an {uri-maven}[Apache Maven] build.
The conversion can happen in 2 flavors:
. as a Maven plugin: AsciiDoc files are converted at full Asciidoctor power independently from Maven site,
. as a Maven site integration: AsciiDoc files are integrated with Maven reports, which comes with a few limitations (see below for details).
Full documentations is available in the {uri-docs}[USER MANUAL].
ifndef::env-site[] .Translations of the document are available in the following languages:
- link:README_zh-CN.adoc[汉语] endif::[]
ifeval::['{tag}' == 'master'] [NOTE]
You're viewing the documentation for the upcoming release. If you're looking for the documentation for an older release, please refer to one of the following tags: + {uri-repo}/tree/asciidoctor-maven-plugin-2.0.0#readme[2.0.0] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.6.0#readme[1.6.0] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.8#readme[1.5.8] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.7.1#readme[1.5.7.1] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.6#readme[1.5.6] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.5#readme[1.5.5] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.3#readme[1.5.3] ⁃ {uri-repo}/tree/asciidoctor-maven-plugin-1.5.2.1#readme[1.5.2.1]
endif::[]
== Quickstart
These are the minimal steps to convert your AsciiDoc documents to HTML with the asciidoctor-maven-plugin.
. Place your Asciidoc sources in [.path]/src/docs/asciidoc.
org.asciidoctor asciidoctor-maven-plugin ${asciidoctor.maven.plugin.version} asciidoc-to-html generate-resources process-asciidoc ---- . Add the minimal configuration to your [.path]pom.xml. + [source,xml]
. Run the plugin's associated phase.
$ mvn generate-resources
== Examples
You can find examples ready to copy-paste in the {uri-examples}[Asciidoctor Maven examples] project.
== Contributing
This plugin is an open source project made possible with the help of users and enthusiasts. To continue to be useful and to evolve, this plugin needs continuing contributions. There are multiple ways where you can help:
- join the discussions
- give feedback on ideas
- report issue
- test new releases
- contribute source code to fix issues or add new functionality
- write documentation
The {uri-docs}/project/contributing.html[Contributor Guide] will help you start with the code.
== Copyright and License
Copyright (C) 2013-2020 Jason Porter, Dan Allen, Abel Salgado Romero and the individual contributors. Use of this software is granted under the terms of the Apache License, Version 2.0.
See the {uri-license}[LICENSE] for the full license text.