Skip to content

Commit 05faf54

Browse files
committed
build en only
1 parent 47f60f0 commit 05faf54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ main() {
4040

4141
if [[ -z "$locale" ]]; then
4242
echo "Building default Docusaurus (English)"
43-
build_command="GENERATE_SOURCEMAP=false docusaurus build"
43+
build_command="GENERATE_SOURCEMAP=false docusaurus build --locale en"
4444
else
4545
echo "Setting locale to: $locale"
4646
export DOCUSUARUS_LOCALE="$locale"
@@ -51,7 +51,7 @@ main() {
5151

5252
# Append output directory if provided
5353
if [[ -n "$out_dir" ]]; then
54-
build_command+=" --out-dir $out_dir/en"
54+
build_command+=" --out-dir $out_dir"
5555
fi
5656

5757
# Execute the build command for English (or without locale if no locale provided)
@@ -62,7 +62,7 @@ main() {
6262
build_command="GENERATE_SOURCEMAP=false docusaurus build --locale $locale"
6363

6464
if [[ -n "$out_dir" ]]; then
65-
build_command+=" --out-dir $out_dir/$locale"
65+
build_command+=" --out-dir $out_dir"
6666
fi
6767

6868
# Execute the build command for the additional locale

0 commit comments

Comments
 (0)