Skip to content

Commit b7c1255

Browse files
Update docs.yml
1 parent 2272417 commit b7c1255

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)