Skip to content

Commit

Permalink
Fix intro page
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanogualdi committed Apr 2, 2016
1 parent a8fc306 commit fefd424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle/documentation.gradle
Expand Up @@ -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 {
Expand All @@ -51,15 +51,15 @@ 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()) {
f.renameTo new File(dir, project.name + '-' + project.version + '.' + ext)
}
}

File ghpages = new File(buildDir, 'docs/ghpages.html')
File ghpages = new File(buildDir, 'docs/index.html')
if (ghpages.exists()) {
ghpages.delete()
}
Expand Down

0 comments on commit fefd424

Please sign in to comment.