-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (47 loc) · 1.26 KB
/
sphinx.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Sphinx: render and deploy docs"
on: push
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install numpy
pip install pandas
pip install ipython
pip install geopy
pip install sphinx
pip install nbsphinx
pip install numpydoc
pip install sphinx-rtd-theme
pip install sphinx-press-theme
pip install furo
- uses: actions/checkout@master
- uses: nikeee/setup-pandoc@v1
- run: echo "# Test" | pandoc -t html
- name: Build sphinx
run: |
sphinx-build -b html docs/source docs/build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build