File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ BASE_URL=${1:-"http://localhost:1313"}
77echo " 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 "
1313VERSIONS=(
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
2323rm -rf public
@@ -30,7 +30,7 @@ GIT_HASH=$(git rev-parse --short HEAD)
3030echo " Building main site from $MAIN_REF (commit: $GIT_HASH )"
3131hugo \
3232 --minify \
33- --themesDir=../.. --source=docs \
33+ --themesDir=../.. --source=$MAIN_DIR \
3434 --baseURL " $BASE_URL /" \
3535 --destination=../public
3636
You can’t perform that action at this time.
0 commit comments