diff --git a/docker/docs/builder/run.sh b/docker/docs/builder/run.sh index df8f8745ef1..539b6ce7b65 100755 --- a/docker/docs/builder/run.sh +++ b/docker/docs/builder/run.sh @@ -13,8 +13,9 @@ else fi # The repo is usually mounted to /ClickHouse +LANGUAGES=$(grep -o "'[/][a-z][a-z]'" /opt/clickhouse-docs/docusaurus.config.js | sort -u | sed "s/'\/\([a-z][a-z]\)'/\1/") -for lang in en ru zh ja +for lang in $LANGUAGES do if [ -d "/ClickHouse/docs/${lang}" ]; then cp -rf "/ClickHouse/docs/${lang}" "/opt/clickhouse-docs/docs/"