From dc9af9599e27e4df27ec7cc39ca08703ecb695bf Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 10 Sep 2015 10:10:05 +0100 Subject: [PATCH] Include documentation samples in the main docs zip Previously, to see an example of the documentation that can be produced by Spring REST Docs, users had to clone the repository and build one of the samples. This commit makes it easier to see what Spring REST Docs can do by updating the docs zip that's automatically published to docs.spring.io to include both the API Guide and the Getting Started Guide from the RESTful notes sample. Closes gh-112 --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 338df543..b593dfb9 100644 --- a/build.gradle +++ b/build.gradle @@ -153,7 +153,7 @@ task api (type: Javadoc) { } } -task docsZip(type: Zip, dependsOn: [':docs:asciidoctor', ':api']) { +task docsZip(type: Zip, dependsOn: [':docs:asciidoctor', ':api', ':buildSamples']) { group = 'Distribution' baseName = 'spring-restdocs' classifier = 'docs' @@ -167,6 +167,10 @@ task docsZip(type: Zip, dependsOn: [':docs:asciidoctor', ':api']) { from(api) { into 'api' } + + from(file('samples/rest-notes-spring-hateoas/build/asciidoc/html5')) { + into 'samples/restful-notes' + } } configurations {