Skip to content

Commit 63d2836

Browse files
Merge #36
36: docs r=jdroenner a=ChristianBeilschmidt Co-authored-by: Christian Beilschmidt <[email protected]>
2 parents f785e67 + 5453617 commit 63d2836

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

.github/workflows/docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-20.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: APT update
19+
run: sudo apt-get update
20+
- name: Install system dependencies
21+
run: sudo apt-get install libgeos-dev libproj-dev
22+
- name: Set up Python 3.9
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.9
26+
- name: Install build dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
pip install -e .
31+
32+
- name: Generate Python Docs
33+
run: pdoc --html --output-dir docs geoengine
34+
35+
- name: Deploy
36+
uses: peaceiris/actions-gh-pages@v3
37+
if: ${{ github.ref == 'refs/heads/main' }}
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./docs/geoengine
41+
cname: python.docs.geoengine.io

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ python3 -m pylint tests
6666

6767
Our tip is to activate linting with `pylint` in your IDE.
6868

69+
## Documentation
70+
71+
Generate documentation HTML with:
72+
73+
```bash
74+
pdoc3 --html --output-dir docs geoengine
75+
```
76+
6977
## Distribute to PyPI
7078

7179
### Test-PyPI

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
build
22
cartopy==0.19.0.post1 # for WMS example
33
matplotlib
4+
pdoc3
45
pycodestyle # formatter
56
pylint # code linter
67
pytest
78
requests_mock
8-
setuptools
99
scipy # for WMS example
10+
setuptools
1011
twine # PyPI
1112
wheel

0 commit comments

Comments
 (0)