├── gradle.properties ├── settings.gradle ├── gradle ├── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── signing.gradle └── publish.gradle ├── src ├── main │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ └── org.asciidoctor.jruby.extension.spi.ExtensionRegistry │ └── groovy │ │ └── org │ │ └── asciidoctor │ │ └── groovydsl │ │ ├── AsciidoctorExtensionException.java │ │ ├── extensions │ │ ├── DelegatingDocinfoProcessor.groovy │ │ ├── DelegatingPostprocessor.groovy │ │ ├── DelegatingPreprocessor.groovy │ │ ├── DelegatingBlockMacroProcessor.groovy │ │ ├── DelegatingInlineMacroProcessor.groovy │ │ ├── DelegatingBlockProcessor.groovy │ │ ├── DelegatingTreeprocessor.groovy │ │ └── DelegatingIncludeProcessor.groovy │ │ ├── GroovyExtensionRegistry.groovy │ │ ├── AsciidoctorExtensionHandler.groovy │ │ └── AsciidoctorExtensions.groovy └── test │ ├── resources │ ├── testpreprocessorextension.groovy │ ├── testdocinfoprocessorextension.groovy │ ├── testinlinemacroprocessorextension.groovy │ ├── testincludeprocessorextension.groovy │ ├── testblockmacroextension.groovy │ ├── error.groovy │ ├── testpostprocessorextension.groovy │ ├── testblockextensions.groovy │ └── testtreeprocessorextension.groovy │ └── groovy │ └── org │ └── asciidoctor │ └── groovydsl │ └── AsciidoctorGroovyDSLSpec.groovy ├── config ├── HEADER └── codenarc │ └── codenarc.groovy ├── .gitignore ├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── release.yaml │ └── continuous-integration.yaml ├── CHANGELOG.adoc ├── gradlew.bat ├── gradlew ├── LICENSE.txt └── README.adoc /gradle.properties: -------------------------------------------------------------------------------- 1 | version=3.0.0-beta.1 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'asciidoctorj-groovy-dsl' 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asciidoctor/asciidoctorj-groovy-dsl/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/META-INF/services/org.asciidoctor.jruby.extension.spi.ExtensionRegistry: -------------------------------------------------------------------------------- 1 | org.asciidoctor.groovydsl.GroovyExtensionRegistry 2 | -------------------------------------------------------------------------------- /src/test/resources/testpreprocessorextension.groovy: -------------------------------------------------------------------------------- 1 | preprocessor { 2 | document, reader -> 3 | reader.advance() 4 | reader 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/testdocinfoprocessorextension.groovy: -------------------------------------------------------------------------------- 1 | String metatag = '' 2 | 3 | docinfo_processor { 4 | document -> metatag 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/testinlinemacroprocessorextension.groovy: -------------------------------------------------------------------------------- 1 | inline_macro (name: "man") { 2 | parent, target, attributes -> 3 | options = [type: ":link", target: target + ".html"] 4 | createPhraseNode(parent, "anchor", target, attributes, options) 5 | } 6 | -------------------------------------------------------------------------------- /src/test/resources/testincludeprocessorextension.groovy: -------------------------------------------------------------------------------- 1 | String content = "The content of the URL" 2 | 3 | include_processor (filter: {it.startsWith("http")}) { 4 | document, reader, target, attributes -> 5 | reader.pushInclude(content, target, target, 1, attributes); 6 | } 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /src/test/resources/testblockmacroextension.groovy: -------------------------------------------------------------------------------- 1 | block_macro (name: "gist") { 2 | parent, target, attributes -> 3 | String content = """