akka-guide icon indicating copy to clipboard operation
akka-guide copied to clipboard

Fail the docs generation (in author-mode) on Warnings

Open ignasi35 opened this issue 5 years ago • 1 comments

AsciiDoc supports lowering the failure of the processor using --failure-level=LEVEL (defaults to FATAL).

~It'd be useful to setup --failure-level=WARNING. I've been looking around but can't locate how to setup our Makefile/antora build to pass that setting down into the asciidoctor command.~ Edit: that setting is for asciidoctorCLI, not asciidcotor.js.

ignasi35 avatar Aug 27 '20 10:08 ignasi35

I asked on the antora Gitter channel:

the Asciidoctor logging infrastructure was introduced in Asciidoctor 2+ and Antora is using Asciidoctor 1.5+ once antora/antora#522 will be resolved, it will be technically possible to retrieve the "maximum" log level from the logger until then you can probably hack something based on the stdout of Antora using some regular expressions

ignasi35 avatar Aug 28 '20 14:08 ignasi35