Uses the Yupiik asciidoc implementation to render an asciidoc file in HTML.

Coordinates

<plugin>
  <groupId>io.yupiik.maven</groupId>
  <artifactId>yupiik-tools-maven-plugin</artifactId>
  <version>1.3.1-SNAPSHOT</version>
</plugin>

To call this goal from the command line execute: mvn yupiik-tools:asciidoc.

To bind this goal in the build you can use:

<plugin>
  <groupId>io.yupiik.maven</groupId>
  <artifactId>yupiik-tools-maven-plugin</artifactId>
  <version>1.3.1-SNAPSHOT</version>
  <executions>
    <execution>
      <id>my-execution</id>
      <goals>
        <goal>asciidoc</goal>
      </goals>
      <configuration>
        <!-- execution specific configuration come there -->
      </configuration>
    </execution>
  </executions>
</plugin>

You can execute this goal particularly with mvn yupiik-tools:asciidoc@my-execution command.

Configuration

TIP

* means the parameter is required.

input* (String)

The file to render. Property: ${yupiik.asciidoc.input}.

output* (String)

Where to write the output. Property: ${yupiik.asciidoc.output}.

assets (List)

Assets folder to copy before the rendering next to the output. Can host js, css etc...

attributes (Map)

Attributes given to the parser and to the renderer: they resolve the conditional directives the parser evaluates (in the header and inside a table) and the references of the rendered content, for the names the document does not set itself, since an attribute entry of the document wins over them. Property: ${yupiik.asciidoc.attributes}.

base (String)

include resolution base directory. Property: ${yupiik.asciidoc.base}.

dataUriForAscii2Svg (boolean)

should ascii2svg diagram be rendered as svg or img tag. Default value: true. Property: ${yupiik.asciidoc.dataUriForAscii2Svg}.

openBrowser (boolean)

Should the browser be opened after the rendering in watch mode (ignored otherwise). Can be true/false. Default value: true. Property: ${yupiik.asciidoc.openBrowser}.

port (int)

Port to launch the server when opening the browser in watch mode. Default value: 4200. Property: ${yupiik.asciidoc.port}.

renderer (String)

Renderer to use, can be io.yupiik.asciidoc.renderer.html.AsciidoctorLikeHtmlRenderer, io.yupiik.asciidoc.renderer.html.ShowerRenderer or any fully qualified name of a visitor. Default value: io.yupiik.asciidoc.renderer.html.AsciidoctorLikeHtmlRenderer. Property: ${yupiik.asciidoc.renderer}.

sectionIdOnTitle (boolean)

should the id of a section be written on its title tag (h2...) as asciidoctor does, instead of on the section tag. Default value: true. Property: ${yupiik.asciidoc.sectionIdOnTitle}.

sectionTag (String)

section tag for default asciidoctor like renderer. Default value: div. Property: ${yupiik.asciidoc.sectionTag}.

skipGlobalContentWrapper (boolean)

should the div.content wrapper for the whole rendering be skipped. Default value: false. Property: ${yupiik.asciidoc.skipGlobalContentWrapper}.

skipSectionBody (boolean)

should section body div wrappers be skipped (can be useful for some theming). Default value: false. Property: ${yupiik.asciidoc.skipSectionBody}.

supportsDataAttributes (boolean)

should html data attributes be supported. Default value: true. Property: ${yupiik.asciidoc.supportsDataAttributes}.

unknownMacro (io.yupiik.asciidoc.renderer.UnknownMacro)

What the renderer does with a macro it has no method for, such as tooltip:foo[a hint], which is most often a mistake in the document: FAIL fails the rendering naming the macro, IGNORE writes nothing, TEXT writes the macro as text, as asciidoctor writes a macro no extension registers (the default). The attribute yupiik-renderer-asciidoctorlikehtml-unknownMacro, in the document or in attributes, wins over it. Default value: TEXT. Property: ${yupiik.asciidoc.unknownMacro}.

watch (long)

If positive the rendering will loop with a delay of this value. Default value: -1. Property: ${yupiik.asciidoc.watch}.