Skip to content

Commit 4af8895

Browse files
Copilotcommjoen
andcommitted
Fix pre-commit formatting issues (trailing whitespace and missing newlines)
Co-authored-by: commjoen <[email protected]>
1 parent 4fe020f commit 4af8895

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/scripts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This directory contains scripts to generate static HTML previews from Thymeleaf
88

99
- `generate_thymeleaf_previews.py` - Main script that converts Thymeleaf templates to static HTML
1010
- `test_thymeleaf_generation.sh` - Test script to verify the generation works
11-
- `update_pr_index.py` - Updates the main GitHub Pages index with PR information
11+
- `update_pr_index.py` - Updates the main GitHub Pages index with PR information
1212
- `remove_pr_from_index.py` - Removes PR information when PR is closed
1313

1414
## How It Works
@@ -34,7 +34,7 @@ The `generate_thymeleaf_previews.py` script:
3434
### Generated Pages
3535

3636
- **welcome.html** - Home page with challenge table (from `welcome.html` template)
37-
- **about.html** - About page with project information (from `about.html` template)
37+
- **about.html** - About page with project information (from `about.html` template)
3838
- **stats.html** - Stats and configuration page (from `stats.html` template)
3939
- **challenge-example.html** - Sample challenge page (from `challenge.html` template)
4040

@@ -105,4 +105,4 @@ To add preview support for new templates:
105105
- **Missing templates**: Script will generate fallback content
106106
- **Parse errors**: Check Thymeleaf syntax in templates
107107
- **Empty output**: Verify mock data contains expected variables
108-
- **Broken layout**: Check CSS/JS file paths in static assets
108+
- **Broken layout**: Check CSS/JS file paths in static assets

.github/scripts/test_thymeleaf_generation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if ! grep -q "OWASP WrongSecrets" "static-site/pr-999/pages/welcome.html"; then
3434
fi
3535

3636
if ! grep -q "About WrongSecrets" "static-site/pr-999/pages/about.html"; then
37-
echo "❌ Error: about.html missing expected content"
37+
echo "❌ Error: about.html missing expected content"
3838
exit 1
3939
fi
4040

@@ -56,4 +56,4 @@ done
5656
# Clean up
5757
rm -rf static-site
5858

59-
echo "🎉 All tests passed! Thymeleaf preview generation is working correctly."
59+
echo "🎉 All tests passed! Thymeleaf preview generation is working correctly."

.github/workflows/github-pages-preview.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
- name: Generate Thymeleaf static previews
5252
run: |
5353
echo "Generating Thymeleaf static previews for PR #${{ github.event.number }}..."
54-
5554
# Generate static HTML from Thymeleaf templates
5655
python3 .github/scripts/generate_thymeleaf_previews.py ${{ github.event.number }}
5756

0 commit comments

Comments
 (0)