Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions documentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,16 @@ task expandJavaDocIndexHtml(type: Copy) {
)
}

task generateUserGuidePDF(type : Exec) {
dependsOn generateUserGuideToc

workingDir "$buildDir/docs"

commandLine 'pandoc', '--pdf-engine=xelatex', '-s', '-o', 'user-guide.pdf', 'user-guide.md'
Comment on lines +102 to +106
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this specify task inputs and task outputs?
Inputs and outputs would enable Gradle to track up-to-date properly, and the task could even become build-cacheable in the future.

}

task generateDocumentation {
dependsOn(generateUserGuideToc, generateJavaDoc, expandJavaDocIndexHtml)
dependsOn(generateUserGuideToc, generateJavaDoc, expandJavaDocIndexHtml, generateUserGuidePDF)
doLast {
String docsFolder = "${buildDir}/docs-${docsVersion(jqwikVersion)}"
file(docsFolder).delete()
Expand Down Expand Up @@ -150,4 +158,3 @@ dependencies {
testImplementation("org.mockito:mockito-core:${mockitoVersion}")
testImplementation("org.assertj:assertj-core:${assertJVersion}")
}