Skip to content

Commit e5e4309

Browse files
committed
fix: corrected deployment path
1 parent b67a8ce commit e5e4309

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
2727
- name: Build Sphinx documentation
2828
run: |
29-
# Navigates into the documentation source directory
30-
cd python/src/sphinx_docs
31-
python -m sphinx -b html . _build
32-
29+
# Use the full relative path from the repository root to avoid 'cd' issues
30+
python -m sphinx -b html ./python/src/sphinx_docs ./python/src/sphinx_docs/_build
31+
3332
- name: Deploy to GitHub Pages
3433
uses: peaceiris/actions-gh-pages@v3
3534
with:
3635
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./python/src/sphinx_docs/_build/html # Path to your built HTML
36+
# THIS IS THE CRITICAL LINE
37+
publish_dir: ./python/src/sphinx_docs/_build/html
3838
publish_branch: gh-pages
3939
enable_jekyll: false

0 commit comments

Comments
 (0)