copy lang directories only specified in docusaurus.config.js

This commit is contained in:
Miki Matsumoto 2024-12-05 17:02:43 +09:00
parent cf3891fc2d
commit 6ef858c65b

View File

@ -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/"