Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(1.6.x) Fix documentation build #809

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions spring-cloud-app-broker-docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ plugins {
description = "Spring Cloud App Broker Documentation"

configurations {
docs
asciidoctorExtensions
}

dependencies {
Expand All @@ -38,20 +38,15 @@ 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 {
enabled = false
}

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"
Expand Down Expand Up @@ -81,6 +76,10 @@ asciidoctorPdf {
asciidoctor {
dependsOn asciidoctorPdf
baseDirFollowsSourceFile()
configurations "asciidoctorExtensions"
outputOptions {
backends "spring-html"
}
sourceDir = file("$buildDir/asciidoc")
sources {
include '*.adoc'
Expand Down