Giter Site home page Giter Site logo

beyondlex / asciidoctor-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asciidoctor/asciidoctor-maven-plugin

0.0 0.0 0.0 3.43 MB

A Maven plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.

Home Page: http://asciidoctor.org

License: Apache License 2.0

Ruby 0.01% Java 96.22% Groovy 3.50% HTML 0.19% Slim 0.08%

asciidoctor-maven-plugin's Introduction

Asciidoctor Maven Tools (Plugin & Site Integration)

Build Status Coverage Status Maven Central project chat

The Asciidoctor Maven Plugin is the official way to convert your AsciiDoc documentation using Asciidoctor from an Apache Maven build.

The conversion can happen in 2 flavors:

  1. as a Maven plugin: AsciiDoc files are converted at full Asciidoctor power independently from Maven site,

  2. 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 USER MANUAL, if you have questions, please drop them at the PROJECT CHAT.

Translations of the document are available in the following languages:
📎

You’re viewing the documentation for the upcoming release. If you’re looking for the documentation for a stable release, please refer to one of the following tags:

+ 3.0.02.2.6

Quickstart

These are the minimal steps to convert your AsciiDoc documents to HTML with the asciidoctor-maven-plugin.

  1. Place your AsciiDoc sources in src/docs/asciidoc.

  2. Add the minimal configuration to your pom.xml.

    <plugin>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctor-maven-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
            <execution>
                <id>asciidoc-to-html</id>
                <phase>generate-resources</phase>
                <goals>
                    <goal>process-asciidoc</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
  3. Run the plugin’s associated phase.

    $ mvn generate-resources

If you want to generate your Maven site with Asciidoctor

  1. Place your AsciiDoc sources in src/site/asciidoc.

  2. Add the minimal configuration to your pom.xml.

    Maven site integration
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.12.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.asciidoctor</groupId>
                        <artifactId>asciidoctor-parser-doxia-module</artifactId>
                        <version>3.0.0</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
  3. Run the plugin’s associated phase.

    $ mvn site:site

Examples

You can find examples ready to copy-paste in the Asciidoctor Maven examples project.

Supported version

asciidoctor-maven-plugin comes in two versions with support for Maven 3.8.8+ and 3.9.x versions.

  • Version 3.x.x: current development branch. This is the recommended version, new features and fixes will be added as minor/patch releases.

  • Version 2.2.x: maintenance branch. Fixes will be released as patch versions up until 31st January 2025.

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 Contributor Guide will help you start with the code.

Copyright © 2013-2024 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 LICENSE for the full license text.

asciidoctor-maven-plugin's People

Contributors

abelsalgadoromerowd avatar abelsromero avatar actions-user avatar bananeweizen avatar dashorst avatar dependabot[bot] avatar ge0ffrey avatar graphitefriction avatar grdryn avatar hboutemy avatar janwesterkamp-ijug avatar jasondlee avatar khmarbaise avatar leif81 avatar lightguard avatar markustiede avatar mathieu-chauvet avatar michael-simons avatar mojavelinux avatar nicolasgeraud avatar obfischer avatar ptahchiev avatar rmannibucau avatar robertpanzer avatar sanne avatar simonnagl avatar slachiewicz avatar tisoft avatar uniqueck avatar vietj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.