Skip to content

Commit 3fbc718

Browse files
authored
Merge pull request ClickHouse#77555 from ClickHouse/update_docker
Docs: Update run.sh
2 parents 3502dbf + 8f3ae42 commit 3fbc718

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docker/docs/builder/run.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -ex
44

55
GIT_BRANCH=$(git branch --show-current)
66

7+
git checkout yarn.lock
78
if [ "$GIT_DOCS_BRANCH" ] && ! [ "$GIT_DOCS_BRANCH" == "$GIT_BRANCH" ]; then
89
git fetch origin --depth=1 -- "$GIT_DOCS_BRANCH:$GIT_DOCS_BRANCH"
910
git checkout "$GIT_DOCS_BRANCH"
@@ -12,20 +13,10 @@ else
1213
git pull
1314
fi
1415

15-
# The repo is usually mounted to /ClickHouse
16-
LANGUAGES=$(grep -o "'[/][a-z][a-z]'" /opt/clickhouse-docs/docusaurus.config.js | sort -u | sed "s/'\/\([a-z][a-z]\)'/\1/")
17-
1816
# install latest packages
1917
yarn install
2018
yarn prep-from-local /ClickHouse
2119

22-
for lang in $LANGUAGES
23-
do
24-
if [ -d "/ClickHouse/docs/${lang}" ]; then
25-
cp -rf "/ClickHouse/docs/${lang}" "/opt/clickhouse-docs/docs/"
26-
fi
27-
done
28-
2920
# Force build error on wrong symlinks
3021
sed -i '/onBrokenMarkdownLinks:/ s/ignore/error/g' docusaurus.config.js
3122

0 commit comments

Comments
 (0)