Skip to content

Commit e1fcc1a

Browse files
committed
Update to asciidoctor-gradle-plugin 4.0.4 and asciidoctorj 3.0.0
1 parent 70f4a6e commit e1fcc1a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id 'nu.studer.credentials' version '3.0'
1515
id 'maven-publish'
1616
id 'signing'
17-
id 'org.asciidoctor.jvm.convert' version '4.0.3'
17+
id 'org.asciidoctor.jvm.convert' version '4.0.4'
1818
}
1919

2020
defaultTasks 'clean', 'build'
@@ -97,8 +97,7 @@ processResources {
9797
}
9898

9999
asciidoctorj {
100-
// asciidoctorj 3.0.0 doesn't seem to work with asciidoctor-gradle-plugin 4.0.3
101-
version = '2.5.13'
100+
version = '3.0.0'
102101

103102
docExtensions file('doc-extension.groovy')
104103
}

doc-extension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
docinfo_processor {
22
document -> {
3-
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
3+
if (!document.isBasebackend('html') || !document.hasAttribute('fb-canonical-html')) {
44
return
55
}
66
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"

0 commit comments

Comments
 (0)