Skip to content

Commit 443a2e9

Browse files
authored
Merge prebuild-summary into develop (#116)
* Added prebuild.sh to vercel_build and updated Summaries. * Updating prebuild to work in vercel for dynamic summaries.
1 parent 9e593a2 commit 443a2e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

prebuild.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ if [ ! -d "src/config" ]; then
2828
fi
2929

3030
# Ensure we have branch-specific SUMMARY files
31-
# If they don't exist, create them from the current SUMMARY.md
31+
# If they don't exist, fail with an error
3232
if [ ! -f "src/config/SUMMARY.md.develop" ]; then
33-
echo "Creating develop SUMMARY file from current..."
34-
cp src/SUMMARY.md src/config/SUMMARY.md.develop
33+
echo "ERROR: src/config/SUMMARY.md.develop file is missing!"
34+
exit 1
3535
fi
3636

3737
if [ ! -f "src/config/SUMMARY.md.main" ]; then
38-
echo "Creating main SUMMARY file from current..."
39-
cp src/SUMMARY.md src/config/SUMMARY.md.main
38+
echo "ERROR: src/config/SUMMARY.md.main file is missing!"
39+
exit 1
4040
fi
4141

4242
# Select the appropriate SUMMARY.md based on branch
43-
if [ "$CURRENT_BRANCH" = "main" ]; then
43+
if [ "$CURRENT_BRANCH" = "main" ] || [ "$CURRENT_BRANCH" = "master" ]; then
4444
echo "Using main branch SUMMARY.md"
4545
cp src/config/SUMMARY.md.main src/SUMMARY.md
4646
else

0 commit comments

Comments
 (0)