Define location to the spring.css stylesheet using an absolute path.

Also applied the same approach used in
d8f160c178.

However, this had no effect.
This commit is contained in:
John Blum
2020-03-04 13:52:03 +01:00
parent 52145da1c9
commit a9d45b24b4

View File

@@ -1,5 +1,4 @@
import org.apache.tools.ant.filters.ReplaceTokens
import org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask
apply plugin: 'io.spring.convention.docs'
apply plugin: 'io.spring.convention.spring-test'
@@ -18,12 +17,10 @@ dependencies {
}
def versions = dependencyManagement.managedVersions
def relativePathToSpringCss = "css/spring.css"
def absolutePathToSpringCss = new File(project.getBuildDir(), relativePathToSpringCss).getAbsolutePath()
tasks.withType(AbstractAsciidoctorTask).configureEach {
clearSources()
sources {
include "index.adoc"
}
asciidoctor {
def githubBaseUrl = "https://github.com/spring-projects/spring-boot-data-geode"
def githubTag = snapshotBuild ? 'master' : project.version
@@ -33,9 +30,12 @@ tasks.withType(AbstractAsciidoctorTask).configureEach {
'version-snapshot': snapshotBuild,
'version-milestone': milestoneBuild,
'version-release': releaseBuild,
'download-url' : "${githubBaseUrl}/archive/${githubTag}.zip",
'github-url': githubUrl,
'github-samples-url': "${githubUrl}/spring-geode-samples",
'download-url' : "${githubBaseUrl}/archive/${githubTag}.zip",
'stylesheet' : absolutePathToSpringCss,
'highlightjsdir@': "js/highlight",
'docinfodir@': ".",
'master-apache-geode-version' : "19",
'master-pivotal-gemfire-version' : "98",
'master-pivotal-cloudcache-version' : "1-8",