41 lines
833 B
YAML
Raw Normal View History

2024-04-27 17:50:15 -04:00
name: docs
on:
push:
branches:
- master
jobs:
docs:
name: Docs
2024-04-29 16:11:55 -04:00
runs-on: ubuntu-latest
2024-04-27 17:50:15 -04:00
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v1
with:
2024-04-29 16:06:17 -04:00
python-version: 3.9.19
2024-04-27 17:50:15 -04:00
- name: Install requirements
run: |
2024-04-29 16:02:12 -04:00
pip install -U sphinx
pip install sphinx-rtd-theme
2024-04-29 16:39:02 -04:00
pip install scikit-learn==1.0
2024-04-27 17:50:15 -04:00
- name: Build docs
run: |
2024-04-29 14:57:56 -04:00
pip3 install .
2024-04-27 17:50:15 -04:00
cd docs
2024-04-29 13:52:33 -04:00
sphinx-apidoc -o . ../kan
2024-04-29 13:55:14 -04:00
make clean html
2024-04-29 14:05:28 -04:00
make html
2024-04-27 17:50:15 -04:00
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
2024-04-29 00:30:47 -04:00
publish_branch: gh-pages
2024-04-27 17:50:15 -04:00
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/