"
+ echo "Example: $0 generate-default.cake console-default.png"
+ exit 1
+fi
+
+echo "Generating console output for $SCRIPT_NAME..."
+
+# Create temp directory for output
+TEMP_DIR=$(mktemp -d)
+trap "rm -rf $TEMP_DIR" EXIT
+
+# Generate console output with ANSI colors
+script -q -c "dotnet tool run dotnet-cake $SCRIPT_NAME --settings_skippackageversioncheck=true 2>&1" "$TEMP_DIR/console-output.txt"
+
+# Convert ANSI to HTML
+ansi2html --scheme dracula < "$TEMP_DIR/console-output.txt" > "$TEMP_DIR/console-output.html"
+
+# Add custom CSS for better terminal appearance
+cat > "$TEMP_DIR/styled-console.html" << 'EOF'
+
+
+
+
+
+
+
+
+EOF
+
+# Extract the content between first and last "Script" lines and add to styled HTML
+sed -n '/Script started/,/Script done/p' "$TEMP_DIR/console-output.html" | \
+ sed '1d;$d' | \
+ sed 's/^[^>]*>//g' >> "$TEMP_DIR/styled-console.html"
+
+cat >> "$TEMP_DIR/styled-console.html" << 'EOF'
+
+
+
+EOF
+
+# Ensure docs image directory exists
+mkdir -p "$DOCS_IMAGE_DIR"
+
+# Convert HTML to PNG with specific dimensions and styling
+wkhtmltoimage \
+ --width 1200 \
+ --height 800 \
+ --quality 100 \
+ --format png \
+ --javascript-delay 1000 \
+ --no-stop-slow-scripts \
+ --enable-local-file-access \
+ "$TEMP_DIR/styled-console.html" \
+ "$DOCS_IMAGE_DIR/$IMAGE_NAME"
+
+echo "Screenshot saved to: $DOCS_IMAGE_DIR/$IMAGE_NAME"
\ No newline at end of file
diff --git a/docs/input/assets/scripts/console-examples/run-examples.sh b/docs/input/assets/scripts/console-examples/run-examples.sh
index 3a8170d0d..438cc7ba6 100755
--- a/docs/input/assets/scripts/console-examples/run-examples.sh
+++ b/docs/input/assets/scripts/console-examples/run-examples.sh
@@ -1,17 +1,38 @@
#!/usr/bin/env bash
-# Default settings example
-echo "=== Running Default Console Report Example ==="
-dotnet tool restore && dotnet tool run dotnet-cake generate-default.cake --verbosity=minimal
+# Script to run all console example scripts and generate screenshots
-echo ""
-echo "=== Running Grouped by Rule Example ==="
-dotnet tool restore && dotnet tool run dotnet-cake generate-grouped.cake --verbosity=minimal
+set -e
+
+echo "Generating all console example screenshots..."
+
+# Ensure we have the required tools
+command -v dotnet >/dev/null 2>&1 || { echo "dotnet is required but not installed. Aborting." >&2; exit 1; }
+command -v ansi2html >/dev/null 2>&1 || { echo "ansi2html is required but not installed. Aborting." >&2; exit 1; }
+command -v wkhtmltoimage >/dev/null 2>&1 || { echo "wkhtmltoimage is required but not installed. Aborting." >&2; exit 1; }
+
+# Restore dotnet tools
+echo "Restoring dotnet tools..."
+dotnet tool restore
+
+# Generate all screenshots
+echo "Generating default screenshot..."
+./generate-screenshot.sh generate-default.cake console-default.png
+echo "Generating grouped screenshot..."
+./generate-screenshot.sh generate-grouped.cake console-grouped.png
+
+echo "Generating summaries screenshot..."
+./generate-screenshot.sh generate-summaries.cake console-summaries.png
+
+echo "Generating combined screenshot..."
+./generate-screenshot.sh generate-combined.cake console-combined.png
+
+echo ""
+echo "All screenshots have been generated successfully!"
echo ""
-echo "=== Running Summaries Example ==="
-dotnet tool restore && dotnet tool run dotnet-cake generate-summaries.cake --verbosity=minimal
+echo "Generated files:"
+ls -la ../../images/console-examples/*.png
echo ""
-echo "=== Running Combined Features Example ==="
-dotnet tool restore && dotnet tool run dotnet-cake generate-combined.cake --verbosity=minimal
\ No newline at end of file
+echo "Screenshots are ready for use in the documentation."
\ No newline at end of file