Last active
June 28, 2025 11:27
-
-
Save wfouche/70738de122128bbc19ea888799151699 to your computer and use it in GitHub Desktop.
asciidoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //DEPS org.asciidoctor:asciidoctorj:3.0.0 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram:3.0.1 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram-plantuml:1.2025.3 | |
| import org.asciidoctor.Asciidoctor; | |
| import org.asciidoctor.Options; | |
| import org.asciidoctor.SafeMode; | |
| import java.io.File; | |
| public class asciidoc { | |
| public static void main(String[] args) { | |
| Asciidoctor asciidoctor = Asciidoctor.Factory.create(); | |
| asciidoctor.requireLibrary("asciidoctor-diagram"); | |
| asciidoctor.convertFile( | |
| new File(args[0]), | |
| Options.builder() | |
| .toFile(true) | |
| .safe(SafeMode.UNSAFE) | |
| .build()); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the test.adoc document that was used to test asciidoc.java