diff --git a/fineract-doc/build.gradle b/fineract-doc/build.gradle index 4338bc29bd2..0504c6ed879 100644 --- a/fineract-doc/build.gradle +++ b/fineract-doc/build.gradle @@ -25,8 +25,8 @@ asciidoctorj { attributes = [ version: "${project.version}", generated: "${buildDir}/generated/asciidoc", - imagesdir: "${projectDir}/src/docs/en/images", - diagramsdir: "${projectDir}/src/docs/en/diagrams", + imagesdir: "${buildDir}/generated/images", + diagramsdir: "${buildDir}/generated/diagrams", years: '2015-2024', revnumber: "${project.version}".toString(), rootdir: "${rootDir}".toString(), @@ -59,6 +59,16 @@ asciidoctor { dependsOn(':fineract-client:clean', ':fineract-client:buildAsciidoc') } +task copyImages(type: Copy) { + from "${projectDir}/src/docs/en/images" + into "${buildDir}/generated/images" +} + +task copyDiagrams(type: Copy) { + from "${projectDir}/src/docs/en/diagrams" + into "${buildDir}/generated/diagrams" +} + asciidoctorPdf { languages 'en' @@ -71,6 +81,8 @@ asciidoctorPdf { logging.captureStandardError LogLevel.INFO + dependsOn copyImages, copyDiagrams + // TODO: @vidakovic prepare a nicer theme // theme 'fineract-default' // pdfThemes {