From 1876f52abcf8383f7ccd7d68402be53f87d53ccf Mon Sep 17 00:00:00 2001 From: Jay Bryant Date: Mon, 9 Apr 2018 12:42:25 -0500 Subject: [PATCH] #566 - Use external Spring Doc resources. We now use spring-doc-resources that contains CSS and JavaScript for a consistent reference documentation style across Spring projects. Original pull request: #545. --- parent/pom.xml | 110 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 98 insertions(+), 12 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index bb233cad..523090ee 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -244,11 +244,19 @@ ${project.build.directory}/shared-resources + ${project.build.directory}/doc-resources true true + + org.springframework.doc-resources + spring-doc-resources + 0.1.1-SNAPSHOT + provided + zip + org.springframework.data.build spring-data-build-resources @@ -287,6 +295,31 @@ + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-shared-resources + + unpack-dependencies + + initialize + + + + org.springframework.doc-resources + spring-doc-resources + zip + true + ${doc.resources} + + + @@ -341,12 +374,6 @@ generate-resources - - - - - - @@ -380,13 +407,62 @@ + + create-docs-working-directory + initialize + + + + + + + + + + + + + + + + + + + + + + + + run + + + rename-reference-docs package + + + + + + + + + + + + + + + + + + + @@ -431,20 +507,24 @@ process-asciidoc + ${project.build.directory}/working html5 - ${project.root}/target/site/reference/html + ${project.build.directory}/generated-docs false prettify true font true + ./stylesheets spring.css + shared + left - + - ${project.root}/src/main/asciidoc - index.adoc book ${project.version} @@ -484,7 +570,7 @@ ${spring} ${releasetrain} true - 3 + 4 true