@groovy.transform.CompileStatic class AntoraExtension extends Object
Configures Antora document generation.
| Modifiers | Name | Description |
|---|---|---|
static class |
AntoraExtension.CopyFilter |
Defines a copy filter. |
| Modifiers | Name | Description |
|---|---|---|
static String |
API_DOCS_SECTION |
|
static String |
CHANGELOG_SECTION |
|
static String |
LEGACY_DOCS_SECTION |
|
static String |
NAME |
| Type | Name and description |
|---|---|
AntoraExtension.CopyFilter |
antoraSourceFilterA filter for copying unmodified Antora sources. |
AntoraExtension.CopyFilter |
antoraYmlFilterA filter for copying antora.yml |
Provider<String> |
componentName |
Provider<String> |
rootStartDocument |
Provider<File> |
sourceDirectory |
Provider<String> |
title |
| Constructor and description |
|---|
AntoraExtension
(Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Provider<String> |
getComponentName()The name of the Antora component. |
|
Provider<java.util.List<java.util.regex.Pattern>> |
getIgnoreWarnings()Antora warnings to ignore. |
|
Provider<Boolean> |
getPreserveLegacyDocumentation()Whether legacy documentation should be migrated if found. |
|
Provider<java.util.List<String>> |
getPreservedLegacyVersions()Returns the list of legacy versions to be preserved. |
|
Provider<String> |
getRootStartDocument()The name of the document in ROOT/pages that shoudl be used as the starting point. |
|
Provider<java.util.List<String>> |
getScriptExtensions()List of Antora script extensions. |
|
Provider<File> |
getSourceDirectory()The directory where Antora sources are to be found. |
|
Provider<String> |
getTitle()Documentation title for the project |
|
void |
ignoreWarnings(java.util.List<String> patterns)When considering Antora warnings as failures, ignore these warnings. |
|
void |
ignoreWarnings(String[] patterns)When considering Antora warnings as failures, ignore these warnings. |
|
void |
scriptExtension(String path)Adds an Antora script extension |
|
void |
setComponentName(Object name)Sets the component name. |
|
void |
setPreserveLegacyDocumentation(boolean value)Sets whether legacy documentation should be preserved. |
|
void |
setRootStartDocument(Object name)Set the starting document. |
|
void |
setSourceDirectory(Object dir)Set the Antora source directory. |
|
void |
setTitle(Object t)Sets the title of the project. |
A filter for copying unmodified Antora sources.
A filter for copying antora.yml
The name of the Antora component.
This is the name entry in the antora.yml file.
It is also used to calcualte the start_page in the Antora playbook.
Antora warnings to ignore.
Whether legacy documentation should be migrated if found.
true if legacy documentation should be preserved.Returns the list of legacy versions to be preserved.
The name of the document in ROOT/pages that shoudl be used as the starting point.
The default is index.adoc.
List of Antora script extensions.
The directory where Antora sources are to be found. Files in this directory are preprocessed and then placed in a working directory before processed by Antora.
When considering Antora warnings as failures, ignore these warnings.
patterns - Regex patternsWhen considering Antora warnings as failures, ignore these warnings.
patterns - Regex patternsAdds an Antora script extension
path - A path below the script directory in the Antora source directory.Sets the component name.
name - Name of componentSets whether legacy documentation should be preserved.
If set to true then docs/legacy-versions.txt should exist.
This file can be created by migrating the older docs/landingPage/display-versions.txt.
The default is to preserve legacy documentation
value - true to preserve legacy docs.Set the starting document.
name - Name of file inside ROOT/pages.Set the Antora source directory.
dir - Directory where authored sources are to be found.Sets the title of the project.
t - TitleGroovy Documentation