Skip to content

Commit

Permalink
Updated docs task to create manual folder
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Jun 19, 2018
1 parent ad8f4d4 commit a791a50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle/documentation.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import org.asciidoctor.gradle.AsciidoctorTask

tasks.withType(AsciidoctorTask) {
attributes asciidoctorAttributes
outputDir new File(buildDir, 'docs/docs')
outputDir new File(buildDir, 'docs/manual')
separateOutputDirs = false
sourceDir = file('src/docs')
sources {
Expand All @@ -53,15 +53,15 @@ task asciidoc(type: AsciidoctorTask, description: 'Generates single-page HTML an

task docs(dependsOn: [asciidoc])
docs.doLast({
File dir = new File(buildDir, 'docs/docs')
File dir = new File(buildDir, 'docs/manual')
['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 quickRefDir = new File(buildDir, 'docs/docs/ref')
File quickRefDir = new File(buildDir, 'docs/manual/ref')
['pdf'].each { String ext ->
File f = new File(quickRefDir, 'index.' + ext)
if (f.exists()) {
Expand Down

0 comments on commit a791a50

Please sign in to comment.