Skip to content

Commit

Permalink
dont generate to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Jan 6, 2025
1 parent b1dcf82 commit 537ffff
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions fineract-doc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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'

Expand All @@ -71,6 +81,8 @@ asciidoctorPdf {

logging.captureStandardError LogLevel.INFO

dependsOn copyImages, copyDiagrams

// TODO: @vidakovic prepare a nicer theme
// theme 'fineract-default'
// pdfThemes {
Expand Down

0 comments on commit 537ffff

Please sign in to comment.