Commit 18c2ff1
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments