Content types

Pages

To add a page, create a new asciidoc file in modules/ROOT/pages. Then add a link to the new file in modules/ROOT/content-nav.adoc.

For example:

* xref:index.adoc[]
* xref:getting-started.adoc[]
* xref:content-types.adoc[]

For more information about pages, see Antora Docs → Pages.

Partials

Partials are reusable asciidoc fragments that can be included in a page, or in another partial. Partials are stored in _modules/ROOT/partials.

Example 1. Including asciidoc content from a partial:

Asciidoc:

include::partial$reusing-content.adoc[]

Output:

This paragraph can be used anywhere with the syntax shown in Partials.

For more information about partials, see Antora Docs → Partials.

Examples

Examples are stored in _modules/ROOT/examples.

Example 2. Including a CSV file:

Asciidoc:

include::example$example.csv[]

Output:

Field1,Field2
Value1,Value2

Images

Images are stored in _modules/ROOT/images.

Example 3. Including an image:

Asciidoc:

image::image.svg[]