You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2023/01/19 16:15:25 UTC

[flink] 01/02: [FLINK-30378][docs] Load data/ directory from externalized connector docs

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

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 8d5cfe60335f655f7196a0e744d7bbbf8f10ca8a
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Mon Dec 12 13:10:16 2022 +0100

    [FLINK-30378][docs] Load data/ directory from externalized connector docs
---
 docs/config.toml   |  3 +++
 docs/setup_docs.sh | 11 ++---------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/docs/config.toml b/docs/config.toml
index d72d9322fba..2e9057d4a2b 100644
--- a/docs/config.toml
+++ b/docs/config.toml
@@ -124,3 +124,6 @@ pygmentsUseClasses = true
 [[module.imports.mounts]]
   source = 'layouts'
   target = 'layouts'
+[[module.imports.mounts]]
+  source = 'data'
+  target = 'data'
diff --git a/docs/setup_docs.sh b/docs/setup_docs.sh
index b0c48ba6883..0a75d0fdf17 100755
--- a/docs/setup_docs.sh
+++ b/docs/setup_docs.sh
@@ -27,19 +27,12 @@ function integrate_connector_docs {
   local connector ref additional_folders
   connector=$1
   ref=$2
-  additional_folders=( "${@:3}" )
 
   git clone --single-branch --branch ${ref} https://github.com/apache/flink-connector-${connector}
   theme_dir="../themes/connectors"
   mkdir -p "${theme_dir}"
 
-  for rsync_folder_subpath in "docs/content" "docs/content.zh" "${additional_folders[@]}"; do
-    local rsync_source_path="flink-connector-${connector}/${rsync_folder_subpath}"
-
-    if [ -e "${rsync_source_path}" ]; then
-      rsync -a "flink-connector-${connector}/${rsync_folder_subpath}" "${theme_dir}/"
-    fi
-  done
+  rsync -a flink-connector-${connector}/docs/* "${theme_dir}/"
 }
 
 
@@ -53,7 +46,7 @@ cd tmp
 integrate_connector_docs elasticsearch v3.0.0
 integrate_connector_docs aws v4.0
 integrate_connector_docs cassandra v3.0.0
-integrate_connector_docs pulsar main "docs/layouts"
+integrate_connector_docs pulsar main
 integrate_connector_docs jdbc v3.0.0
 integrate_connector_docs rabbitmq v3.0.0