Skip to content

Commit 8de6e90

Browse files
committed
build Chinese patterns
1 parent 3ec8c51 commit 8de6e90

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

build.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@ set -x
44

55
cd docs
66

7-
# setup java-design-patterns
7+
# Setup java-design-patterns - English
88
rm -rf java-design-patterns
99
rm -rf patterns
10+
rm -rf zh/patterns
1011
git clone https://github.com/iluwatar/java-design-patterns.git -b vuepress
1112
cd java-design-patterns
1213
git checkout-index -a -f --prefix=../patterns/
1314
cd ../patterns
1415
rm -rf etc .circleci .github .mvn checkstyle-suppressions.xml CONTRIBUTING.MD LICENSE.md license-plugin-header-style.xml mvnw mvnw.cmd pom.xml PULL_REQUEST_TEMPLATE.md .all-contributorsrc .gitignore gpl-3.0.txt layers.log lgpl-3.0.txt lombok.config service-layer.log
1516
find . -maxdepth 2 -type d -exec bash -c 'cd "{}" && pwd && rm -rf src pom.xml *.ucls *.puml .gitignore' \;
1617
mv -vf index.md README.md
17-
cd ..
18+
# Setup java-design-patterns - Chinese
19+
cd localization/zh
20+
mkdir ../../../zh/patterns
21+
cp -vrf * ../../../zh/patterns
22+
cd ../../../zh/patterns
23+
mv -vf index.md README.md
24+
cd ../..
1825
rm -rf java-design-patterns
26+
rm -rf patterns/localization
1927

2028
# setup programming-principles
2129
rm -rf programming-principles

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ module.exports = config({
7878
},
7979

8080
pwa: false,
81-
81+
8282
},
8383
});

0 commit comments

Comments
 (0)