Skip to content

Commit

Permalink
Fix doc (#8)
Browse files Browse the repository at this point in the history
* Fix doc

* Update actions

* Update actions
  • Loading branch information
HanBnrd authored Jun 15, 2024
1 parent f4513af commit cfc9b26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme nbsphinx
pip install sphinx sphinx_rtd_theme ipython nbsphinx
- name: Sphinx build
run: |
sphinx-build -b html docs/source public
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-docs
path: public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/simple-probe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# NIRSimple example\n",
"\n",
"→ [Download this notebook](https://github.com/HanBnrd/NIRSimple/blob/master/docs/source/examples/simple_probe.ipynb)"
"→ [Download this notebook](https://github.com/HanBnrd/NIRSimple/blob/master/docs/source/examples/simple-probe.ipynb)"
]
},
{
Expand Down

0 comments on commit cfc9b26

Please sign in to comment.