You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gu...@apache.org on 2023/05/15 13:13:51 UTC

[flink-connector-gcp-pubsub] 02/02: [FLINK-32024][docs] Short code related to externalized connector retrieve version from its own data yaml

This is an automated email from the ASF dual-hosted git repository.

guoweijie pushed a commit to branch v3.0
in repository https://gitbox.apache.org/repos/asf/flink-connector-gcp-pubsub.git

commit 759855e26ecdd0cf8eb2b3794e6075fdd9a5edae
Author: Weijie Guo <re...@163.com>
AuthorDate: Thu May 11 22:58:09 2023 +0800

    [FLINK-32024][docs] Short code related to externalized connector retrieve version from its own data yaml
---
 .../content.zh/docs/connectors/datastream/pubsub.md |  2 +-
 docs/content/docs/connectors/datastream/pubsub.md   |  2 +-
 docs/data/pubsub.yml                                | 21 +++++++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/docs/content.zh/docs/connectors/datastream/pubsub.md b/docs/content.zh/docs/connectors/datastream/pubsub.md
index d72ca33..b1c00ac 100644
--- a/docs/content.zh/docs/connectors/datastream/pubsub.md
+++ b/docs/content.zh/docs/connectors/datastream/pubsub.md
@@ -28,7 +28,7 @@ under the License.
 
 这个连接器可向 [Google Cloud PubSub](https://cloud.google.com/pubsub) 读取与写入数据。添加下面的依赖来使用此连接器:
 
-{{< connector_artifact flink-connector-gcp-pubsub 3.0.0 >}}
+{{< connector_artifact flink-connector-gcp-pubsub pubsub >}}
 
 <p style="border-radius: 5px; padding: 5px" class="bg-danger">
 <b>注意</b>:此连接器最近才加到 Flink 里,还未接受广泛测试。
diff --git a/docs/content/docs/connectors/datastream/pubsub.md b/docs/content/docs/connectors/datastream/pubsub.md
index 454b860..06c8e5d 100644
--- a/docs/content/docs/connectors/datastream/pubsub.md
+++ b/docs/content/docs/connectors/datastream/pubsub.md
@@ -30,7 +30,7 @@ This connector provides a Source and Sink that can read from and write to
 [Google Cloud PubSub](https://cloud.google.com/pubsub). To use this connector, add the
 following dependency to your project:
 
-{{< connector_artifact flink-connector-gcp-pubsub 3.0.0 >}}
+{{< connector_artifact flink-connector-gcp-pubsub pubsub >}}
 
 {{< hint warning >}}
 <b>Note</b>: This connector has been added to Flink recently. It has not received widespread testing yet.
diff --git a/docs/data/pubsub.yml b/docs/data/pubsub.yml
new file mode 100644
index 0000000..2507114
--- /dev/null
+++ b/docs/data/pubsub.yml
@@ -0,0 +1,21 @@
+################################################################################
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+# limitations under the License.
+################################################################################
+
+version: 3.0.1
+variants:
+  - maven: flink-connector-gcp-pubsub