From 46a2d6dfa1c4fa916cd3ebcf68e1e7441aee7cff Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Tue, 27 Jun 2023 12:08:54 +0200 Subject: [PATCH] Fix docs build: use 'spring-asciidoctor-backends' extension to add UI theme --- spring-cloud-app-broker-docs/build.gradle | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/spring-cloud-app-broker-docs/build.gradle b/spring-cloud-app-broker-docs/build.gradle index e2561111..d63fc7d4 100644 --- a/spring-cloud-app-broker-docs/build.gradle +++ b/spring-cloud-app-broker-docs/build.gradle @@ -25,7 +25,7 @@ plugins { description = "Spring Cloud App Broker Documentation" configurations { - docs + asciidoctorExtensions } dependencies { @@ -38,7 +38,7 @@ dependencies { implementation "io.projectreactor:reactor-core" implementation "io.r2dbc:r2dbc-h2:1.0.0.RELEASE" - docs "io.spring.docresources:spring-doc-resources:0.2.5@zip" + asciidoctorExtensions "io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.5" } javadoc { @@ -46,12 +46,7 @@ javadoc { } task prepareAsciidocBuild(type: Sync) { - dependsOn configurations.docs - // copy doc resources - from { - configurations.docs.collect { zipTree(it) } - } - // and doc sources + // Copy doc sources from "src/docs/asciidoc" // to a temporary build directory into "$buildDir/asciidoc" @@ -81,6 +76,10 @@ asciidoctorPdf { asciidoctor { dependsOn asciidoctorPdf baseDirFollowsSourceFile() + configurations "asciidoctorExtensions" + outputOptions { + backends "spring-html" + } sourceDir = file("$buildDir/asciidoc") sources { include '*.adoc'