Last active
September 26, 2018 09:41
-
-
Save hlapidez/efba680e983f983f3543cd088b1e7b93 to your computer and use it in GitHub Desktop.
gradle ascii doc test and problem. Problem is the diagramm only works the first build. If the adoc is changed and the conversion is run again the diagram is not generate and embedded as plaintext. Message: 'invalid style for literal block: ditaa'
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
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.8' | |
| classpath group: 'org.asciidoctor', name: 'asciidoctorj-diagram', version: '1.5.9' | |
| classpath group: 'org.asciidoctor', name: 'asciidoctorj-pdf', version: '1.5.0-alpha.16' | |
| } | |
| } | |
| plugins { | |
| id 'com.github.jruby-gradle.base' version '1.5.0' | |
| } | |
| apply plugin: 'org.asciidoctor.convert' | |
| dependencies { | |
| } | |
| asciidoctor { | |
| dependsOn jrubyPrepare | |
| requires = ['asciidoctor-diagram'] | |
| gemPath = jrubyPrepare.outputDir | |
| backends = ['html5', 'pdf'] | |
| logDocuments = true | |
| sourceDir = file('docs') | |
| sources { | |
| include 'toplevel.adoc', 'another.adoc', 'third.adoc' | |
| } | |
| outputDir = file('build/docs') | |
| attributes 'source-highlighter' : 'coderay', | |
| 'coderay-linenums-mode' : 'table', | |
| toc : 'left', | |
| icon : 'font', | |
| linkattrs : true, | |
| encoding : 'utf-8' | |
| } |
Author
hlapidez
commented
Sep 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment