Skip to content

Commit 0e919e7

Browse files
committed
fix(build): update version source directory for v0.10.2 to exampleSite
1 parent 83f3b50 commit 0e919e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ BASE_URL=${1:-"http://localhost:1313"}
77
echo "Using base URL: $BASE_URL"
88

99
# Version configuration - modify these arrays to specify versions to build
10-
# MAIN_VERSION format: "ref:display_name"
10+
# MAIN_VERSION format: "ref:display_name:source_dir"
1111
# VERSIONS format: "ref:display_name:source_dir" where source_dir is either "docs" or "exampleSite"
12-
MAIN_VERSION="v0.11.0:latest"
12+
MAIN_VERSION="v0.11.0:latest:exampleSite"
1313
VERSIONS=(
1414
"main:latest:docs" # latest version always builds from main
15-
"v0.10.2:v0.10:docs"
15+
"v0.10.2:v0.10:exampleSite"
1616
"v0.9.6:v0.9:exampleSite"
1717
)
1818

1919
# Parse main version
20-
IFS=':' read -r MAIN_REF MAIN_NAME <<< "$MAIN_VERSION"
20+
IFS=':' read -r MAIN_REF MAIN_NAME MAIN_DIR <<< "$MAIN_VERSION"
2121

2222
# Ensure clean public directory
2323
rm -rf public
@@ -30,7 +30,7 @@ GIT_HASH=$(git rev-parse --short HEAD)
3030
echo "Building main site from $MAIN_REF (commit: $GIT_HASH)"
3131
hugo \
3232
--minify \
33-
--themesDir=../.. --source=docs \
33+
--themesDir=../.. --source=$MAIN_DIR \
3434
--baseURL "$BASE_URL/" \
3535
--destination=../public
3636

0 commit comments

Comments
 (0)