Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagram source files get corrupted #11

Open
dhakehurst opened this issue Oct 20, 2020 · 0 comments
Open

Diagram source files get corrupted #11

dhakehurst opened this issue Oct 20, 2020 · 0 comments

Comments

@dhakehurst
Copy link

Bit of an issue.
When I run the gradle assciidoc task, all my images have their content set to 0 bytes !!!

all images are .png files.
included in adoc file like:
image:images/xxx/YYY.png

here is the relevant part of the build.gradle.kts file.

plugins {
    id("org.asciidoctor.jvm.convert") version "3.2.0"
}

asciidoctorj {
    modules {
        diagram.use()
        diagram.version("2.0.5")
    }
}

tasks {
    "asciidoctor"(org.asciidoctor.gradle.jvm.AsciidoctorTask::class) {
        sourceDir(file("documentation"))
        setBaseDir(file("documentation"))
        sources(delegateClosureOf<PatternSet> {
            include("UserGuide.asciidoc")
        })
        setOutputDir(file("documentation"))

        attributes(
            mapOf(
                "data-uri" to "true",
                "toc2" to "",
                "theme" to "flask",
                "nofooter" to ""
            )
        )
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant