|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Class Summary | |
|---|---|
| Asciidoclet | Asciidoclet |
Asciidoclet is a Javadoc Doclet that uses Asciidoctor (via the Asciidoctor Java integration) to render AsciiDoc markup within Javadoc comments.
Asciidoclet may be used via a custom doclet in the maven-javadoc-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<source>1.7</source>
<doclet>org.asciidoctor.Asciidoclet</doclet>
<docletArtifact>
<groupId>org.asciidoclet</groupId>
<artifactId>asciidoclet</artifactId>
<version>${asciidoclet.version}</version>
</docletArtifact>
</configuration>
</plugin>
/**
* = Asciidoclet
*
* A Javadoc Doclet that uses http://asciidoctor.org[Asciidoctor]
* to render http://asciidoc.org[AsciiDoc] markup in Javadoc comments.
*
* @author https://github.com/johncarl81[John Ericksen]
*/
public class Asciidoclet extends Doclet {
private final Asciidoctor asciidoctor = Asciidoctor.Factory.create(); // <1>
@SuppressWarnings("UnusedDeclaration")
public static boolean start(RootDoc rootDoc) {
new Asciidoclet().render(rootDoc); // <2>
return Standard.start(rootDoc);
}
}
Creates an instance of the Asciidoctor Java integration
Runs Javadoc comment strings through Asciidoctor
code() or code()
Doc Writer <doc@example.com>
AsciiDoc is a lightweight markup language.
Learn more about it at http://asciidoctor.org.
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
bullet
| Column 1 | Column 2 | Column 3 |
|---|---|---|
1 |
Item 1 |
a |
2 |
Item 2 |
b |
3 |
Item 3 |
c |
|
Important
|
Check this out! |
Asciidoclet
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||