File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - dj/ docs
7+ - ' ** docs** '
88 paths :
99 - ' docs/**'
1010 - ' .github/workflows/deploy_docs.yml'
1111
1212jobs :
13- pages :
13+ build-docs :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.11"
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install sphinx docutils
28+ pip install -r docs/requirements.txt || true
29+
30+ - name : Build Sphinx documentation
31+ run : |
32+ sphinx-build -b html docs/ docs/_build/html
33+
34+ - name : Upload documentation artifact
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : docs/_build/html
38+
39+ deploy :
40+ needs : build-docs
1441 runs-on : ubuntu-latest
15- environment :
16- name : github-pages
17- url : ${{ steps.deployment.outputs.page_url }}
1842 permissions :
1943 pages : write
2044 id-token : write
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
2148 steps :
22- - id : deployment
23- uses : sphinx-notes/pages@v3
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11sphinx
2- pydata-sphinx-theme
2+ pydata-sphinx-theme
3+ docutils
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ pytest = "^8.3.2"
4040[tool .poetry .group .docs .dependencies ]
4141sphinx = " ^8.1.3"
4242pydata-sphinx-theme = " ^0.16.1"
43+ docutils = " ^0.21.2"
4344
4445[build-system ]
4546requires = [" poetry-core" , " wheel" ]
You can’t perform that action at this time.
0 commit comments