Skip to content

Commit ffa7458

Browse files
authored
Fix website workflow (#339)
1 parent 88cdaf6 commit ffa7458

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/website.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
1316
- name: Install Dependencies
14-
run: |
15-
pip install sphinx shibuya m2r2
17+
run: pip install -r website/docs/requirements.txt
1618
- name: Sphinx Build
17-
uses: ammaraskar/sphinx-action@master
18-
with:
19-
docs-folder: "website/docs/"
20-
build-command: "sphinx-build -b html ./source ./build"
19+
run: cd website/docs && sphinx-build -b html ./source ./build
2120
- name: rsync homepage files
2221
uses: burnett01/rsync-deployments@master
2322
with:

website/docs/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
sphinx
1+
# Pin Sphinx and docutils so CI image upgrades from default 2.4.4/0.16.
2+
# Shibuya theme requires document.findall() (docutils >= 0.18). m2r2 needs docutils >= 0.19.
3+
sphinx>=5.0
4+
docutils>=0.19
25
shibuya
36
m2r2

0 commit comments

Comments
 (0)