Skip to content

Commit 6dbd13e

Browse files
authored
Improved docs (#8)
* Improve docs * Update branch name in docs-build.yml * Add codespell
1 parent fb440fa commit 6dbd13e

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

.github/workflows/docs-build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: docs-build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.10"
16+
- name: Install GDAL
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL pyproj
20+
- name: Test GDAL installation
21+
run: |
22+
python -c "from osgeo import gdal"
23+
gdalinfo --version
24+
- name: Install dependencies
25+
run: |
26+
pip install --no-cache-dir Cython
27+
pip install -r requirements.txt -r requirements_dev.txt -r requirements_docs.txt
28+
pip install .
29+
- name: Discover typos with codespell
30+
run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff,*.pdf" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs"
31+
- name: PKG-TEST
32+
run: |
33+
python -m unittest discover tests/
34+
- run: mkdocs build
35+
- name: Deploy to Netlify
36+
uses: nwtgck/[email protected]
37+
with:
38+
publish-dir: "./site"
39+
production-branch: master
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
deploy-message: "Deploy from GitHub Actions"
42+
enable-pull-request-comment: true
43+
enable-commit-comment: false
44+
overwrites-pull-request-comment: true
45+
env:
46+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
47+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
48+
timeout-minutes: 10

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ The **segment-geospatial** package draws its inspiration from [segment-anything-
1919
- Segment GeoTIFF files using the Segment Anything Model (SAM)
2020
- Save segmentation results as common vector formats (GeoPackage, Shapefile, GeoJSON, etc.)
2121

22+
## Examples
23+
24+
- [Segmenting satellite imagery](https://samgeo.gishub.org/examples/satellite)
25+
2226
## Acknowledgements
2327

2428
This package was made possible by the following open source projects. Credit goes to the developers of these projects.

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ The **segment-geospatial** package draws its inspiration from [segment-anything-
1919
- Segment GeoTIFF files using the Segment Anything Model (SAM)
2020
- Save segmentation results as common vector formats (GeoPackage, Shapefile, GeoJSON, etc.)
2121

22+
## Examples
23+
24+
- [Segmenting satellite imagery](https://samgeo.gishub.org/examples/satellite)
25+
2226
## Acknowledgements
2327

2428
This package was made possible by the following open source projects. Credit goes to the developers of these projects.

requirements_docs.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
black
2+
black[jupyter]
3+
codespell
4+
deadlink
5+
bump2version
6+
coverage
7+
flake8
8+
ipykernel
9+
livereload
10+
nbconvert
11+
nbformat
12+
pip
13+
sphinx
14+
tox
15+
twine
16+
watchdog
17+
wheel
18+
mkdocs
19+
mkdocs-git-revision-date-plugin
20+
mkdocs-git-revision-date-localized-plugin
21+
mkdocs-jupyter>=0.24.0
22+
mkdocs-material>=9.1.3
23+
mkdocs-pdf-export-plugin
24+
mkdocstrings
25+
mkdocstrings-crystal
26+
mkdocstrings-python-legacy
27+
pygments
28+
pymdown-extensions

0 commit comments

Comments
 (0)