File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,11 +37,22 @@ jobs:
3737
3838 - name : Build HTML documentation
3939 run : |
40+ # Build the documentation into the standard output folder
4041 sphinx-build -b html docs/ docs/_build/html
4142
42- - name : Copy publications folder
43+ - name : Fix Image Paths and Assets
4344 run : |
44- cp -r publications/ docs/_build/html/publications/
45+ # 1. Create the expected directory structure in the output
46+ # Since your MD uses "../pica/assets", we create a 'pica' folder
47+ # at the same level as your HTML files.
48+ mkdir -p docs/_build/html/pica
49+ cp -r pica/assets docs/_build/html/pica/
50+
51+ # 2. Copy the publications folder as you did before
52+ cp -r publications/ docs/_build/html/publications/ || true
53+
54+ # 3. CRITICAL: Add .nojekyll to ensure GitHub Pages serves underscore folders
55+ touch docs/_build/html/.nojekyll
4556
4657 - name : Upload GitHub Pages artifact
4758 uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments