Skip to content

Commit 2ae6ff7

Browse files
committed
Build sphinx without using sphinx-notes
1 parent b51fb34 commit 2ae6ff7

1 file changed

Lines changed: 35 additions & 7 deletions

File tree

.github/workflows/deploy_docs.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,48 @@ on:
44
push:
55
branches:
66
- main
7-
- dj/docs
7+
- '**docs**'
88
paths:
99
- 'docs/**'
1010
- '.github/workflows/deploy_docs.yml'
1111

1212
jobs:
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@v2
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@v2

0 commit comments

Comments
 (0)