2025-12-06 17:22:02 -03:00

44 lines
1.2 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
set -e
# Clean build script for GeoServer Cloud Documentation
# This script removes all generated files and build artifacts
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "🧹 Cleaning GeoServer Cloud Documentation"
echo "========================================="
# Remove built site
if [ -d "site" ]; then
echo "🗑️ Removing built site directory..."
rm -rf site/
echo "✅ Site directory removed"
else
echo " No site directory to remove"
fi
# Remove generated diagrams (preserving .gitkeep)
if [ -d "structurizr/exports" ]; then
echo "🗑️ Removing generated diagram exports..."
find structurizr/exports/ -name "*.puml" -delete 2>/dev/null || true
echo "✅ Diagram exports removed"
else
echo " No diagram exports to remove"
fi
# Remove SVG files from src/assets
if [ -d "src/assets/images/structurizr" ]; then
echo "🗑️ Removing SVG diagrams from src/assets..."
rm -f src/assets/images/structurizr/*.svg
echo "✅ Src assets SVG files removed"
else
echo " No src assets SVG files to remove"
fi
echo ""
echo "✅ Cleanup completed!"
echo ""
echo "💡 To rebuild everything: ./build.sh"
echo "🚀 To start development server: ./serve.sh"