Attribute Injection Example
This page demonstrates how AsciiDoc attribute injection works in Showroom.
The values shown below are resolved from content/antora.yml attributes during local development, and from user_data at deploy time.
Environment Info
| Attribute | Rendered Value |
|---|---|
|
abc123 |
|
bastion.abc123.ocpv00.rhdp.net |
|
lab-user |
|
password |
|
https://console-openshift-console.apps.cluster-abc123.ocpv00.rhdp.net |
|
apps.cluster-abc123.ocpv00.rhdp.net |
|
v1.5.6 |
Copyable Command Blocks
Inline Usage
You can reference attributes inline in regular prose. Your environment GUID is abc123 and the bastion is reachable at bastion.abc123.ocpv00.rhdp.net.
How It Works
In your AsciiDoc source, you write attribute references with curly braces:
ssh \{bastion_ssh_user_name}@\{bastion_public_hostname}
At build time, Antora replaces them with the values defined in content/antora.yml (local dev) or injected from user_data (deployed environment).
Always provide sensible defaults in content/antora.yml so your content renders correctly during local development. See User Data and Variables for the full injection flow.
|