From a0280fba460411b632f1e5873b8bebd4c41d0f00 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 4 Mar 2020 08:41:18 -0600 Subject: [PATCH] Workaround duplicate adoc files. guides/*.adoc are copied to guides/*.adoc and ./ when being processed. This breaks links to JavaScript. To workaround this, we explicitly state which sources we want to process and avoid the copy found in './'. See https://github.com/spring-gradle-plugins/spring-build-conventions/issues/80 --- spring-geode-docs/spring-geode-docs.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-geode-docs/spring-geode-docs.gradle b/spring-geode-docs/spring-geode-docs.gradle index a2b5f9be..472ada6c 100644 --- a/spring-geode-docs/spring-geode-docs.gradle +++ b/spring-geode-docs/spring-geode-docs.gradle @@ -25,6 +25,14 @@ asciidoctorPdf { } } +asciidoctor { + clearSources() + sources { + include "index.adoc" + include "guides/*.adoc" + } +} + asciidoctorj { def githubBaseUrl = "https://github.com/spring-projects/spring-boot-data-geode"