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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user