Skip to content

Commit a5c4f16

Browse files
authored
Merge pull request #117 from Ab2nour/master
ci: fix broken doc build & update GitHub Actions versions
2 parents 7f06fb8 + c27e8b0 commit a5c4f16

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

.github/workflows/docbuild.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repo
16-
uses: actions/checkout@v1
16+
uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
@@ -24,22 +24,19 @@ jobs:
2424
pip install -r requirements.txt
2525
pip install -r requirements-dev.txt
2626
pip install .
27-
- name: Install software
28-
run: |
29-
pip install .
3027
- name: Build docs
3128
run: |
3229
cd docs
3330
make html
3431
- name: Upload docs
35-
uses: actions/upload-artifact@v1
32+
uses: actions/upload-artifact@v4
3633
with:
3734
name: docs
3835
path: docs/_build/html
3936
- name: Publish docs to Github Pages
4037
if: startsWith(github.event.ref, 'refs/tags')
41-
uses: JamesIves/github-pages-deploy-action@releases/v3
38+
uses: JamesIves/github-pages-deploy-action@releases/v4
4239
with:
43-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
44-
BRANCH: gh-pages # The branch the action should deploy to.
45-
FOLDER: docs/_build/html # The folder the action should deploy.
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
branch: gh-pages # The branch the action should deploy to.
42+
folder: 'docs/_build/html' # The folder the action should deploy.

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
python-version: [3.9]
1313

1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'sphinx.ext.viewcode',
4040
'numpydoc',
4141
'sphinx_gallery.gen_gallery',
42+
'sphinx.ext.githubpages',
4243
]
4344

4445

docs/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ To examine and download the source code, visit our `github repo <https://github.
1616
Random Forests: The Jackknife and the Infinitesimal Jackknife", Journal
1717
of Machine Learning Research vol. 15, pp. 1625-1651, 2014.
1818
19-
.. toctree::
20-
:maxdepth: 2
19+
.. toctree::
20+
:maxdepth: 2
2121

22-
installation_guide
23-
api
24-
auto_examples/index
25-
contributing
22+
installation_guide
23+
api
24+
auto_examples/index
25+
contributing
2626

2727
.. figure:: _static/eScience_Logo_HR.png
2828
:align: center

0 commit comments

Comments
 (0)