feat(scripts): default to academic-cv starter when no argument provided

- Update view-starter-dev.sh to default to academic-cv if no starter specified
- Update view-starter-prod.sh to default to academic-cv if no starter specified
- Update usage documentation to show starter name as optional parameter
- Maintain backward compatibility with existing usage patterns
This commit is contained in:
George Cushen committed 2025-09-17 00:16:19 +01:00
1 parent d2f774f01f
commit e6734f33ae
2 files changed
+7 -18

No files matched your search

+3 -11
View File
@@ -12,8 +12,9 @@ trap cleanup EXIT INT TERM
usage() {
echo "View a starter template with local development modules and debug features."
echo ""
echo "Usage: ./scripts/view-starter-dev.sh <starter-name> [--debug] [--no-pagefind]"
echo "Usage: ./scripts/view-starter-dev.sh [<starter-name>] [--debug] [--no-pagefind]"
echo "Example: ./scripts/view-starter-dev.sh blog --debug"
echo "Default starter: academic-cv (if no starter-name provided)"
echo ""
echo "This script uses:"
echo " • Local development modules (via HUGO_MODULE_REPLACEMENTS)"
@@ -21,12 +22,7 @@ usage() {
echo " • Optional Pagefind search indexing and enhanced debugging"
}
if [ $# -lt 1 ]; then
usage
exit 1
fi
STARTER=""
STARTER="academic-cv" # Default starter if none provided
DEBUG_MODE=false
PAGEFIND=true
@@ -56,10 +52,6 @@ while [ $# -gt 0 ]; do
esac
done
if [ -z "$STARTER" ]; then
usage
exit 1
fi
# Run Hugo from the site dir so Tailwind CLI is discoverable
cd "starters/$STARTER"