-
Notifications
You must be signed in to change notification settings - Fork 45
42 lines (41 loc) · 1.14 KB
/
check-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
42
name: "Check docs"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install doc dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install jinja2==3.0.3 sphinx==4.4.0 numpydoc==1.2 nbsphinx==0.8.8 sphinx_gallery==0.10.1 sphinx_rtd_theme==1.0.0 ipython==8.0.1
- name: Install adapt dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install adapt
run: |
pip install -e .
- name: Build documentation
run: |
sudo rm -r -f docs/*
make html
sudo rm -r -f docs/doctrees
sudo rm -r -f docs/html/_sources
sudo rm -r -f docs/html/examples/*.ipynb
mv -v docs/html/* docs/
sudo rm -r -f docs/html
touch .nojekyll
- uses: actions/upload-artifact@v3
with:
name: DocumentationHTML
path: docs/