AsciiDoc Reference
AsciiDoc markup fundamentals for Antora documentation. Headers, code blocks, tables, admonitions, includes, and cross-references.
Document Header
= Page Title
:description: One-line SEO description
:navtitle: Short Nav Title
:revdate: 2026-04-10
:icons: font
Every Antora page starts with a level-0 heading (=) followed by document attributes. :navtitle: controls sidebar display. Never add :toc: — Antora UI provides the sidebar TOC globally.
Sections and Headings
== Level 2 — Major Section
=== Level 3 — Subsection
==== Level 4 — Detail
===== Level 5 — Rarely needed
Antora generates anchor IDs automatically from section titles. Override with [#custom-id] above the heading.
Text Formatting
*bold* _italic_ `monospace` *_bold italic_* `*bold mono*`
H~2~O (1)
E=mc^2^ (2)
[.lead] (3)
Opening paragraph with larger font.
| 1 | Subscript with tildes |
| 2 | Superscript with carets |
| 3 | .lead role creates a lead paragraph |
Lists
* Unordered item
** Nested item
*** Third level
. First step
.. Sub-step
. Second step
Term:: Definition on same line
Another term::
Definition on next line, indented
Admonitions
:icons: font in headerNOTE: Informational aside.
TIP: Helpful suggestion.
IMPORTANT: Key requirement.
WARNING: Potential problem.
CAUTION: Data loss risk.
[WARNING]
====
This is a block admonition.
It can contain multiple paragraphs, lists, and code blocks.
====
Code Blocks
[source,bash]
----
awk -F: '{print $1, $3}' /etc/passwd (1)
----
<1> Colon-delimited, prints username and UID
[source,bash,subs=attributes+]
----
ssh {person-evan}@{ws-aw-hostname}
----
When a code block contains {attribute} references, add subs=attributes+ to expand them at build time.
Tables
[cols="1,3",options="header"]
|===
| Command | Description
| `ls -la`
| List all files with details
| `df -h`
| Disk usage in human-readable format
|===
[cols="2,1,3a",options="header"]
|===
| Name | Status | Notes
| Phase 1
| ✅ Done
| Completed on schedule
| Phase 2
| 🟡 Active
| Contains a nested list:
* Item one
* Item two
|===
The a suffix in 3a enables AsciiDoc content (lists, blocks) inside cells.
Cross-References
xref:codex/bash/heredocs.adoc[Heredocs]
xref:education/rhcsa/index.adoc[RHCSA Track]
xref:infra-ops::runbooks/vyos-deployment.adoc[VyOS Runbook]
xref:ise-linux::02-pki/certificate-enrollment.adoc[PKI Enrollment]
Always use full paths from pages/ root. Relative xrefs break in nested directories.
Includes
include::partial$projects/p16g/summary.adoc[]
include::example$codex/bash/heredocs.adoc[]
include::example$codex/bash/loops.adoc[tag=for-loop]
Requires # tag::for-loop[] and # end::for-loop[] markers in the source file.
Images
image::screenshots/ise-dashboard.png[ISE Dashboard, 800]
Click the image:icons/gear.png[Settings, 20] icon to configure.
Images resolve from modules/ROOT/images/ in Antora.
Conditional Content
ifdef::env-github[]
This renders only on GitHub.
endif::[]
ifndef::backend-html5[]
Not HTML5 output.
endif::[]
Useful for rendering differences between Antora and raw GitHub preview.