Doclet Options
- --base-dir <dir>
-
Sets the base directory that will be used to resolve relative path names in AsciiDoc
include::directives. This should be set to the project’s root directory. - -a, --attribute "name[=value], …"
-
Sets document attributes that will be expanded in Javadoc comments. The argument is a string containing a single attribute, or multiple attributes separated by commas.
This option may be used more than once, for example:
-a name=foo -a version=1.Attributes use the same syntax as Asciidoctor command-line attributes:
-
namesets the attribute (with an empty value) -
name=valueassignsvalueto the attribute. Occurrences of{name}in the Javadoc will be replaced by this value. -
name=value@assignsvalueto the attribute, unless the attribute is defined in the attributes file or Javadoc. -
name!unsets the attribute.
The document attribute
javadocis set automatically by the doclet. This can be used for conditionally selecting content when using the same AsciiDoc file for Javadoc and other documentation. -
- --attributes-file <file>
-
Reads document attributes from an AsciiDoc file. The attributes will be expanded in Javadoc comments.
If
<file>is a relative path name, it is assumed to be relative to the--base-dirdirectory.Attributes set by the
-a/--attributeoption take precedence over those in the attributes file. - -r, --require <library>,…
-
Make the specified RubyGems library available to Asciidoctor’s JRuby runtime, for example
-r asciidoctor-diagram.This option may be specified more than once. Alternatively multiple library names may be specified in a single argument, separated by commas.
- --gem-path <path>
-
Sets the
GEM_PATHfor Asciidoctor’s JRuby runtime. This option is only needed when using the--requireoption to load additional gems on theGEM_PATH. - -overview <file>
-
Overview documentation can be generated from an AsciiDoc file using the standard
-overviewoption. Files matching*.adoc,*.ad,*.asciidocor*.txtare processed by Asciidoclet. Other files are assumed to be HTML and will be processed by the standard doclet. - --asciidoclet-include <filter>
- --asciidoclet-exclude <filter>
-
Explicitly include or exclude classes from being processed as AsciiDoc comments by ant-style path matching (see ant-style-path-matcher).
If
--asciidoclet-includeis specified, only classes and packages matching the include filter are processed. Likewise, if--includeis unspecified, all classes are processed. If--asciidoclet-excludeis specified, classes matching the filter are not processed.Both
--asciidoclet-includeand--asciidoclet-excludecan be mixed. In addition, classes excluded with--asciidoclet-excludeor not matching a specified--asciidoclet-includemay be included by annotating the class level javadoc with@asciidoclet. Doing so allows writing one class at a time while respecting refactors. This feature allows the migration of documentation from HTML to AsciiDoc in a piecemeal way.