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
onHover
on 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.yml
in partial templates?{{#with site.keys.googleAnalytics}}
-
Prebuilt
HTML
pages?Put them inside
attachments
directory then add a link to them innav
file -
What are HTML Data Attributes?
If you want to operate on elements based on data attributes, Eg: drawing charts etc