From 363c81710861e15bc8ab010e290d10a9f4cedfa5 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 10 Dec 2018 09:56:10 +0100 Subject: [PATCH] #566 - Polishing. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We now use spring-doc-resources that contains CSS and JavaScript for our reference documentation. External doc resources requires an intermediate asciidoc sources directory to include docinfo files. Documentation generation hence now unpacks Spring Data Build resources and Spring Doc resources, generates an intermediate sources directory and compiles documentation from there. Multi-module projects require a slight adjustment of their external (e.g. Spring Data Commons) imports as doc generation happens typically within the context of a …-distribute module. Original pull request: #545. --- parent/pom.xml | 159 ++++++++++++++++++++++++++----------------------- 1 file changed, 83 insertions(+), 76 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index 523090ee..0857df8e 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -1,5 +1,6 @@ - + - - - org.apache.maven.plugins - maven-dependency-plugin - - unpack-shared-resources + unpack-doc-resources unpack-dependencies - initialize + generate-resources + + io.spring.docresources + spring-doc-resources + zip + true + ${generated-asciidoc-sources.directory} + + + + + org.apache.maven.plugins + maven-compiler-plugin - org.springframework.doc-resources - spring-doc-resources - zip - true - ${doc.resources} + true @@ -408,26 +409,22 @@ - create-docs-working-directory - initialize + create-generated-docs-resources + process-resources - - - - - - - + + - - - - + + - - - + + + + + @@ -439,29 +436,34 @@ rename-reference-docs - package + prepare-package - - - - + + + + + + + + - - - - + + + - - + - + @@ -502,66 +504,71 @@ html - prepare-package + compile process-asciidoc - ${project.build.directory}/working + ${generated-asciidoc-sources.directory} + index.adoc html5 - ${project.build.directory}/generated-docs - false - prettify + ${generated-docs.directory} + highlight.js + js/highlight + atom-one-dark-reasonable true - font true - ./stylesheets + ./css spring.css - shared left - + + book + book + shared + font + false + images ${project.version} ${project.name} ${project.version}