Re: Gradle/AsciiDoctor: Combining all AsciiDoc files in one?
Posted by
mojavelinux on
Jul 30, 2015; 10:53pm
URL: https://discuss.asciidoctor.org/Gradle-AsciiDoctor-Combining-all-AsciiDoc-files-in-one-tp3589p3594.html
You can write extensions inline in your Gradle build, btw.
You'll want "preprocessor" as the DSL stanza.
For example:
extensions {
preprocessor { doc, reader ->
// do stuff
reader
}
}
You'll have to work around some issues until AsciidoctorJ 1.6.0...or you could try a snapshot (which is now available).
Cheers,
-Dan