Use spring-pdf backend for PDF generation
Update `asciidoctorPdf` tasks to use the `spring-pdf` backend so that chomped elements and @fold:on/@fold:off comments are hidden. Closes gh-26373
This commit is contained in:
@@ -2,7 +2,6 @@ plugins {
|
||||
id "java-gradle-plugin"
|
||||
id "maven-publish"
|
||||
id "org.asciidoctor.jvm.convert"
|
||||
id "org.asciidoctor.jvm.pdf"
|
||||
id "org.springframework.boot.conventions"
|
||||
id "org.springframework.boot.maven-repository"
|
||||
id "org.springframework.boot.optional-dependencies"
|
||||
@@ -82,7 +81,7 @@ asciidoctor {
|
||||
attributes "stylesheet": "css/style.css"
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
plugins {
|
||||
id "org.asciidoctor.jvm.convert"
|
||||
id "org.asciidoctor.jvm.pdf"
|
||||
id "org.springframework.boot.conventions"
|
||||
id "org.springframework.boot.maven-plugin"
|
||||
id "org.springframework.boot.optional-dependencies"
|
||||
@@ -74,15 +73,15 @@ asciidoctor {
|
||||
}
|
||||
}
|
||||
|
||||
syncDocumentationSourceForAsciidoctorPdf {
|
||||
from(documentPluginGoals) {
|
||||
into "asciidoc/goals"
|
||||
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
}
|
||||
}
|
||||
|
||||
asciidoctorPdf {
|
||||
sources {
|
||||
include "index.adoc"
|
||||
syncDocumentationSourceForAsciidoctorPdf {
|
||||
from(documentPluginGoals) {
|
||||
into "asciidoc/goals"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user