From fefd4243c5eea1640121db5e8147310de1180d60 Mon Sep 17 00:00:00 2001 From: Stefano Gualdi Date: Sat, 2 Apr 2016 12:40:53 +0200 Subject: [PATCH] Fix intro page --- gradle/documentation.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle/documentation.gradle b/gradle/documentation.gradle index 2922657..035d042 100644 --- a/gradle/documentation.gradle +++ b/gradle/documentation.gradle @@ -38,7 +38,7 @@ import org.asciidoctor.gradle.AsciidoctorTask tasks.withType(AsciidoctorTask) { attributes asciidoctorAttributes - outputDir new File(buildDir, 'docs') + outputDir new File(buildDir, 'docs/docs') separateOutputDirs = false sourceDir = file('src/docs') sources { @@ -51,7 +51,7 @@ task asciidoc(type: AsciidoctorTask, description: 'Generates single-page HTML an } task docs(dependsOn: [asciidoc]) << { - File dir = new File(buildDir, 'docs') + File dir = new File(buildDir, 'docs/docs') ['pdf'].each { String ext -> File f = new File(dir, 'index.' + ext) if (f.exists()) { @@ -59,7 +59,7 @@ task docs(dependsOn: [asciidoc]) << { } } - File ghpages = new File(buildDir, 'docs/ghpages.html') + File ghpages = new File(buildDir, 'docs/index.html') if (ghpages.exists()) { ghpages.delete() }