Skip to content

Commit

Permalink
Update to asciidoctor-gradle-plugin 4.0.4 and asciidoctorj 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Dec 21, 2024
1 parent 70f4a6e commit e1fcc1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
id 'nu.studer.credentials' version '3.0'
id 'maven-publish'
id 'signing'
id 'org.asciidoctor.jvm.convert' version '4.0.3'
id 'org.asciidoctor.jvm.convert' version '4.0.4'
}

defaultTasks 'clean', 'build'
Expand Down Expand Up @@ -97,8 +97,7 @@ processResources {
}

asciidoctorj {
// asciidoctorj 3.0.0 doesn't seem to work with asciidoctor-gradle-plugin 4.0.3
version = '2.5.13'
version = '3.0.0'

docExtensions file('doc-extension.groovy')
}
Expand Down
2 changes: 1 addition & 1 deletion doc-extension.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
docinfo_processor {
document -> {
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
if (!document.isBasebackend('html') || !document.hasAttribute('fb-canonical-html')) {
return
}
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"
Expand Down

0 comments on commit e1fcc1a

Please sign in to comment.