Skip to content

Code folding extension doesnt work in antora? #23

@BaksaZoo

Description

@BaksaZoo

I tried to configure my antora playbook with code-folding-extension but it does not seem to work.

# antora-playbook.yml
asciidoc:
  sourcemap: true
  extensions:
    - '@springio/asciidoctor-extensions/code-folding-extension'

I included this code in one of my pages

[,java]
----
public class Main {

  // @fold:on
  public enum MyEnum {
    MYCONSTANT1,
    MYCONSTANT2,
    MYCONSTANT3
  }
  // @fold:off

  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}
----

Im using the default ui, and installed @springio/asciidoctor-extensions package but no code-folding happens.
The build process doesnt report any errors with --stacktrace enabled.

I tried looking for usages in spring project documentations but did not find any. Is there a problem when using this extension with antora or am i just misconfiguring something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions