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
This commit is contained in:
Andy Wilkinson
2015-09-10 10:10:05 +01:00
parent 11c0945d10
commit dc9af9599e

View File

@@ -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 {