From 0af784aaa95f54e3ef5ba78cb92a204bf089087c Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 13 Mar 2019 16:40:45 +0100 Subject: [PATCH] GH-559 Initial migration of docs to new style Resolves #559 --- README.adoc | 14 +- docs/pom.xml | 294 +++++++++++++++++- .../spring-cloud-stream-binder-kafka.adoc | 2 + 3 files changed, 298 insertions(+), 12 deletions(-) diff --git a/README.adoc b/README.adoc index 6f9571a7d..46dcbf141 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,8 @@ -// Do not edit this file (e.g. go instead to src/main/asciidoc) +//// +DO NOT EDIT THIS FILE. IT WAS GENERATED. +Manual changes to this file will be lost when it is generated again. +Edit the files in the src/main/asciidoc/ directory instead. +//// :jdkversion: 1.8 :github-tag: master @@ -338,12 +342,20 @@ Ignored if `replicas-assignments` is present. + Default: none (the binder-wide default of 1 is used). + NOTE: The Kafka binder uses the `partitionCount` setting of the producer as a hint to create a topic with the given partition count (in conjunction with the `minPartitionCount`, the maximum of the two being the value being used). Exercise caution when configuring both `minPartitionCount` for a binder and `partitionCount` for an application, as the larger value is used. If a topic already exists with a smaller partition count and `autoAddPartitions` is disabled (the default), the binder fails to start. If a topic already exists with a smaller partition count and `autoAddPartitions` is enabled, new partitions are added. If a topic already exists with a larger number of partitions than the maximum of (`minPartitionCount` or `partitionCount`), the existing partition count is used. +compression:: +Set the `compression.type` producer property. +Supported values are `none`, `gzip`, `snappy` and `lz4`. +If you override the `kafka-clients` jar to 2.1.0 (or later), as discussed in the https://docs.spring.io/spring-kafka/docs/2.2.x/reference/html/deps-for-21x.html[Spring for Apache Kafka documentation], and wish to use `zstd` compression, use `spring.cloud.stream.kafka.bindings..producer.configuration.compression.type=zstd`. ++ +Default: `none`. + ==== Usage examples In this section, we show the use of the preceding properties for specific scenarios. diff --git a/docs/pom.xml b/docs/pom.xml index 7f87082d9..0ae69a5c7 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -15,8 +15,11 @@ spring-cloud-stream-binder-kafka ${basedir}/.. + 0.1.0.RELEASE + 0.1.0.RELEASE + + 1.5.0-alpha.16 - docs @@ -25,21 +28,290 @@ org.apache.maven.plugins maven-dependency-plugin - - - org.asciidoctor - asciidoctor-maven-plugin + ${maven-dependency-plugin.version} false - - - com.agilejava.docbkx - docbkx-maven-plugin + + + unpack-docs + generate-resources + + unpack + + + + + org.springframework.cloud + + spring-cloud-build-docs + + ${spring-cloud-build.version} + + sources + jar + false + ${docs.resources.dir} + + + + + + + unpack-docs-resources + generate-resources + + unpack + + + + + io.spring.docresources + spring-doc-resources + ${spring-doc-resources.version} + zip + true + ${project.build.directory}/refdocs/ + + + + + org.apache.maven.plugins - maven-antrun-plugin - false + maven-resources-plugin + + + copy-asciidoc-resources + generate-resources + + copy-resources + + + ${project.build.directory}/refdocs/ + + + src/main/asciidoc + false + + ghpages.sh + + + + + + + + + org.asciidoctor + asciidoctor-maven-plugin + ${asciidoctor-maven-plugin.version} + false + + + io.spring.asciidoctor + spring-asciidoctor-extensions + ${spring-asciidoctor-extensions.version} + + + org.asciidoctor + asciidoctorj-pdf + ${asciidoctorj-pdf.version} + + + + ${project.build.directory}/refdocs/ + ${docs.main}.adoc + + ${project.version} + + + + + generate-html-documentation + prepare-package + + process-asciidoc + + + html5 + highlight.js + book + + // these attributes are required to use the doc resources + shared + css/ + spring.css + true + font + js/highlight + atom-one-dark-reasonable + true + + left + 4 + ${project.version} + true + + ${docs.main}.html + + + + generate-docbook + none + + process-asciidoc + + + + generate-index + none + + process-asciidoc + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + ${maven-antrun-plugin.version} + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + org.apache.ant + ant-nodeps + 1.8.1 + + + org.tigris.antelope + antelopetasks + 3.2.10 + + + org.jruby + jruby-complete + 1.7.17 + + + org.asciidoctor + asciidoctorj + 1.5.8 + + + + + readme + process-resources + + run + + + + + + + + + + + + + assert-no-unresolved-links + prepare-package + + run + + + + + + + + + + + + + + + + setup-maven-properties + validate + + run + + + true + + + + + + + + + + + + + + + + + + copy-css + none + + run + + + + generate-documentation-index + none + + run + + + + copy-generated-html + none + + run + + + + + + org.codehaus.mojo build-helper-maven-plugin diff --git a/docs/src/main/asciidoc/spring-cloud-stream-binder-kafka.adoc b/docs/src/main/asciidoc/spring-cloud-stream-binder-kafka.adoc index d35bac0a2..f9cde4752 100644 --- a/docs/src/main/asciidoc/spring-cloud-stream-binder-kafka.adoc +++ b/docs/src/main/asciidoc/spring-cloud-stream-binder-kafka.adoc @@ -31,6 +31,8 @@ Sabby Anandan, Marius Bogoevici, Eric Bottard, Mark Fisher, Ilayaperumal Gopinat :sc-ext: java // ====================================================================================== +*{spring-cloud-stream-version}* + = Reference Guide include::overview.adoc[]