Antora UI
Antora uses vinyl virtual filesystem aka content catalog
Data Attributes
Store extra information with HTML elements
How to data attributes are defined?
<div class="ct-chart"
data-chart-height="400"
data-chart-width="600">
How to access data-attributes?
element.dataset.chartHeight
element.dataset.chartWidth
Use Cases
-
Show captions
onHoveron certain elements -
Hide/Show some list items
-
Pass data to javascript libraries/modules to do something interesting, like generating chart
-
How to access keys from
antora-playbook.ymlin partial templates?{{#with site.keys.googleAnalytics}} -
Prebuilt
HTMLpages?Put them inside
attachmentsdirectory then add a link to them innavfile -
What are HTML Data Attributes?
If you want to operate on elements based on data attributes, Eg: drawing charts etc