-
Notifications
You must be signed in to change notification settings - Fork 1.4k
41 lines (36 loc) · 868 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: docs
on:
push:
branches:
- master
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: 3.9.19
- name: Install requirements
run: |
pip install -U sphinx
pip install sphinx-rtd-theme
pip install scipy==1.6.0
pip install scikit-learn==1.4.2
- name: Build docs
run: |
pip3 install .
cd docs
sphinx-apidoc -o . ../kan
make clean html
make html
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/