Collapsible blocks

This page demonstrates collapsible example blocks in Antora: use them for optional Hints, Deep dives, or other detail that should not block the main lesson flow.

No extra Antora extension is required; [%collapsible] is built into Asciidoctor.

Hint (collapsed by default)

Hint

Try the exercise first; open this only if you are stuck.

  • Check that your environment variables are set.

  • Re-read the previous section on configuration.

Deep dive (collapsed by default)

Deep dive: how the pipeline stages relate

The build runs validate, then compile, then package. Skipping a stage can leave artifacts out of date; that is why CI always runs the full chain.

./gradlew clean build

Starts expanded

Optional context

This block uses [%collapsible%open] so it is expanded on first load. Use sparingly when the extra context is still optional but you want it visible by default.