-
Notifications
You must be signed in to change notification settings - Fork 1.4k
40 lines (35 loc) · 835 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
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.8
- name: Install requirements
run: |
pip3 install -U sphinx
pip3 install sphinx-rtd-theme
pip3 install scikit-learn==1.1.3
- 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/