File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if ! grep -q "OWASP WrongSecrets" "static-site/pr-999/pages/welcome.html"; then
3434fi
3535
3636if ! 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
3939fi
4040
5656# Clean up
5757rm -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."
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments