docs-builder
Loading

Attributes

To promote consistency across documentation, AsciiDoc uses shared attributes for common terms, URLs, and versions.

In the AsciiDoctor-based system, shared attributes are defined at the site-level and live in the shared/ directory in the elastic/docs repo. The most used files in this directory are:

Attributes are defined at the content set-level. Use the subs key to define attributes as key-value pairs in the content sets docset.yml or toc.yml file.

Example:

 subs: attr-name: "attr value" ea: "Elastic Agent" es: "Elasticsearch" 

Attributes can be referenced in documentation file with the following syntax: {{attr-name-here}}.