Document Title Management
Titles are resolved in a strict three-level hierarchy:
Priority | Source | Scope | Override |
---|---|---|---|
1 |
Component file |
Component name / version |
Overrides all |
2 |
Playbook |
Site branding |
Overrides documents |
3 |
Attributes inside |
Single file |
Lowest |
Component-level titles
File docs/en/antora.yml
name: en
title: Adaptadocx Documentation
version: '1.0'
display_version: '1.0'
asciidoc:
attributes:
component-title: '{title}'
component-version: '{version}'
document-title: '{component-title} {component-version}'
The Russian component docs/ru/antora.yml
mirrors this, using localized strings and name: ru
.
Attribute | Purpose |
---|---|
|
Primary label in the left nav |
|
Machine-readable version |
|
Human-readable version |
|
Reusable attribute |
|
Template for derived titles |
Playbook-level titles
Excerpt antora-playbook-en.yml
site:
title: Adaptadocx Documentation
start_page: en::index.adoc
asciidoc:
attributes:
site-title: '{site.title}'
page-title-pattern: '{site-title} - {page-title}'
The Russian playbook antora-playbook-ru.yml
uses localized values.
Attribute | Purpose |
---|---|
|
Main HTML |
|
Reusable attribute |
|
Global HTML title template |
Document-level titles
Inside any .adoc
file:
= System Architecture
:navtitle: Architecture
Attribute | Effect | May be overridden |
---|---|---|
|
H1 in rendered content |
Metadata can change |
|
Menu entry |
Component |
Output handling
-
HTML —
<title>
is resolved viapage-title-pattern
→ component → document. -
PDF — title block uses component values; version label comes from
asciidoctor-pdf
with-a revnumber=<version>
(Makefile passes the site version). -
DOCX — metadata is loaded from per-locale files
config/meta-en.yml
/config/meta-ru.yml
; the Makefile generates per-version temporary filesbuild/docx/meta-<locale>-<version>.yml
by replacing0.1.0
.
Troubleshooting
-
Inconsistent titles — ensure component
title
/version
and playbook attributes are aligned. -
Wrong PDF title/version — check
-a revnumber
usage in the Makefile andconfig/default-theme.yml
. -
Nav vs. page mismatch — adjust
:navtitle:
or the componentnav.adoc
.