-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.29 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Deploy Sphinx Documentation
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme nbsphinx
pip install .
pip freeze
sudo apt-get install pandoc
- name: Debug - List contents of docs directory
run: ls -R docs
- name: Build Documentation
run: |
cd docs
make html
echo "Contents of _build/html directory:"
ls -R _build/html
continue-on-error: true
- name: Debug - Check Sphinx build output
run: |
cat docs/_build/html/output.log
continue-on-error: true
- name: Check build output
run: |
ls -R docs/_build/html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2