Skip to content

Commit 18c2ff1

Browse files
authored
fix: remove UTF-8 pi symbol from basic_plots.md breaking FORD in CI (#220)
## Problem GitHub Pages was still showing 404 errors for example HTML documentation after PR #219, specifically: - https://lazy-fortran.github.io/fortplot/page/example/basic_plots.html - https://lazy-fortran.github.io/fortplot/page/example/annotation_demo.html ## Root Cause Analysis Investigation of CI logs revealed that FORD was still reporting UTF-8 parsing errors for specific files: ``` Warning: Error parsing '/home/runner/work/fortplot/fortplot/doc/example/basic_plots.md'. utf-8 ``` These UTF-8 parsing errors were preventing FORD from generating HTML files for those documents. ## The Issue A single UTF-8 character (π symbol) in `basic_plots.md` was causing the problem: ```fortran ! Generate simple sine data - show 2 complete periods (0 to 4π) ``` While this works fine in local development environments, the CI environment has stricter UTF-8 handling that caused FORD parsing to fail. ## Solution Replace the π symbol with ASCII 'pi': ```fortran ! Generate simple sine data - show 2 complete periods (0 to 4pi) ``` ## Verification - Local testing: `file -bi doc/example/basic_plots.md` now returns `charset=us-ascii` - All example markdown files are now ASCII-only - FORD should generate HTML files successfully in CI This final fix should resolve the remaining GitHub Pages 404 errors.
1 parent accfa1b commit 18c2ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/example/basic_plots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contains
3030
3131
print *, "=== Basic Plots ==="
3232
33-
! Generate simple sine data - show 2 complete periods (0 to )
33+
! Generate simple sine data - show 2 complete periods (0 to 4pi)
3434
x = [(real(i-1, wp) * 4.0_wp * 3.141592653589793_wp / 49.0_wp, i=1, 50)]
3535
y = sin(x)
3636

0 commit comments

Comments
 (0)