Skip to content

Commit

Permalink
upgrade to new asciidoc plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Sep 7, 2019
1 parent 38d9de2 commit f9d77b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'org.jetbrains.dokka' version '0.9.18'
id 'maven-publish'
id 'signing'
id 'org.asciidoctor.convert' version '2.3.0'
id 'org.asciidoctor.jvm.convert' version '2.3.0'
id 'org.jlleitschuh.gradle.ktlint' version '8.2.0'
id 'org.jlleitschuh.gradle.ktlint-idea' version '8.2.0'
id 'com.cosminpolifronie.gradle.plantuml' version '1.6.0'
Expand Down
16 changes: 9 additions & 7 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

apply plugin: 'org.jetbrains.dokka'
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'org.asciidoctor.jvm.convert'

dokka {
outputFormat = 'html'
Expand Down Expand Up @@ -54,9 +54,11 @@ dokka {
}

asciidoctor {
baseDirFollowsSourceDir()
logDocuments = true
inputs.files(fileTree('src/docs/asciidoc/*'))
requires ['asciidoctor-prism-extension']
asciidoctorj {
fatalWarnings missingIncludes()
}

sources {
include 'index.adoc'
Expand All @@ -70,16 +72,16 @@ asciidoctor {
include '**/*.css'
}
}

attributes toc: 'left',
'source-highlighter': 'prism',
idprefix: '',
idseparator: '-',
docinfo1: ''
}

//asciidoctorj {
// failOnWarnings true
//}
requires ['asciidoctor-prism-extension']

}

task docs(type: Zip, dependsOn: [asciidoctor, dokka]) {
archiveBaseName = project.name
Expand Down

0 comments on commit f9d77b3

Please sign in to comment.