Skip to content

Commit 11129e8

Browse files
committed
changed github workflow for building webpage
1 parent 53cbdee commit 11129e8

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/pages.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,33 @@ jobs:
2323
with:
2424
python-version: "3.10" # Adjust to your preferred Python version
2525

26-
# Step 3: Install dependencies
26+
# Step 3: Set PYTHONPATH
27+
- name: Set PYTHONPATH
28+
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
29+
30+
# Step 4: Install dependencies and module
2731
- name: Install dependencies
2832
run: |
2933
python -m pip install --upgrade pip
3034
pip install sphinx furo # Add any additional dependencies here
35+
pip install . # Install your module
3136
32-
# Step 4: Build the documentation
37+
# Step 5: Build the documentation
3338
- name: Build Sphinx documentation
3439
run: |
35-
sphinx-build -b html docs/source docs/build/html
40+
sphinx-build -b html -W docs/source docs/build/html
41+
42+
# Step 6: Debug functions.html
43+
- name: Debug functions.html
44+
run: |
45+
if [ -f docs/build/html/functions.html ]; then
46+
echo "functions.html found:"
47+
cat docs/build/html/functions.html
48+
else
49+
echo "functions.html not found!"
50+
fi
3651
37-
# Step 5: Deploy to GitHub Pages
52+
# Step 7: Deploy to GitHub Pages
3853
- name: Deploy to GitHub Pages
3954
uses: peaceiris/actions-gh-pages@v3
4055
with:

0 commit comments

Comments
 (0)