This is an automated email from the ASF dual-hosted git repository. martijnvisser pushed a commit to branch release-1.16 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.16 by this push: new 06b0b9cd59c [hotfix] Add support for Scala suffixed in connector download links 06b0b9cd59c is described below commit 06b0b9cd59c204c6405690cbb6a0b0399634a7ff Author: Martijn Visser <mvis...@confluent.io> AuthorDate: Thu Nov 16 14:15:41 2023 +0100 [hotfix] Add support for Scala suffixed in connector download links --- docs/layouts/shortcodes/connector_artifact.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/layouts/shortcodes/connector_artifact.html b/docs/layouts/shortcodes/connector_artifact.html index d023626db2d..4dad55a59b5 100644 --- a/docs/layouts/shortcodes/connector_artifact.html +++ b/docs/layouts/shortcodes/connector_artifact.html @@ -41,6 +41,19 @@ under the License. {{ end }} {{ end }} +{{ $scalaVersion := "" }} +{{ range after 2 .Params }} + {{ if eq . "withScalaVersion" }} + {{ $scalaVersion = "true" }} + {{ else }} + {{ errorf "%q: Invalid use of artifact shortcode. Unknown flag `%s`" $path . }} + {{ end }} +{{ end }} + +{{ if ne $scalaVersion "" }} + + {{ $artifactId = printf "%s%s" $artifactId $.Site.Params.ScalaVersion }} +{{ end }} {{ if $.Site.Params.IsStable }} {{ if $containsVersion }} @@ -48,7 +61,7 @@ under the License. <span class="nt"><groupId></span>org.apache.flink<span class="nt"></groupId></span> <span class="nt"><artifactId></span>{{- $artifactId -}}<span class="nt"></artifactId></span> <span class="nt"><version></span>{{- $version -}}-{{- site.Params.VersionTitle -}}<span class="nt"></version></span> - <span class="nt"></dependency></span></code></pre></div> +<span class="nt"></dependency></span></code></pre></div> <div class="book-hint info" style="text-align:center;display:none" copyable="flink-module" copyattribute="{{ $hash }}"> Copied to clipboard! </div>