Test Features Page
Partials testing
Need to document because this took some experimentation to get working. All examples given in various docs didn’t work for me.
Codeblock testing
Currently, the only source-highlighter value Antora supports when using the default UI is highlight.js
.
You can define the source language globally; either at the page, component version, or site level, by setting the source-language attribute.
Best to do it at the block level.
To define the block, enter source
and the language in a bracket, comma-separated: [source, json]
:
{
"fruit": "Apple",
"size": "Large",
"color": "Green"
}
Collapse test
This does not work in output but does in preview. need to investigate for a logged issue.
Found: https://antora.zulipchat.com/#narrow/stream/282400-users/topic/collapsable.20blocks.20not.20working
Fixed in the latest 3.0 alpha version. Will upgrade to 3.0 as soon as it is released.
Example block turns into collapsible summary/details.