-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add documentation website Co-authored-by: Pete Gadomski <[email protected]>
- Loading branch information
1 parent
dd580cd
commit e13f237
Showing
18 changed files
with
303 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Publish docs via GitHub Pages | ||
|
||
# Only run manually or on new tags starting with `v` | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# We need to additionally fetch the gh-pages branch for mike deploy | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: python -m pip install -e .[pgstac,pc,test,docs] | ||
|
||
- name: Deploy docs | ||
env: | ||
GIT_COMMITTER_NAME: CI | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
run: | | ||
# Get most recent git tag | ||
# https://stackoverflow.com/a/7261049 | ||
# We don't use {{github.ref_name}} because if triggered manually, it | ||
# will be a branch name instead of a tag version. | ||
VERSION=$(git describe --tags --abbrev=0) | ||
# Only push docs if no letters in git tag after the first character | ||
# (usually the git tag will have v as the first character) | ||
if ! echo $VERSION | sed 's/^.//' | grep -q "[A-Za-z]"; then | ||
mike deploy $VERSION latest --update-aliases --push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ __pycache__ | |
dist | ||
.direnv | ||
stac_geoparquet/_version.py | ||
.cache | ||
site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# `stac_geoparquet.arrow` | ||
|
||
Arrow-based format conversions. | ||
|
||
::: stac_geoparquet.arrow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Direct GeoPandas conversion (Legacy) | ||
|
||
The API listed here was the initial non-Arrow-based STAC-GeoParquet implementation, converting between JSON and GeoPandas directly. For large collections of STAC items, using the new Arrow-based functionality (under the `stac_geoparquet.arrow` namespace) will be more performant. | ||
|
||
::: stac_geoparquet.to_geodataframe | ||
::: stac_geoparquet.to_item_collection | ||
::: stac_geoparquet.to_dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../spec/stac-geoparquet-spec.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
site_name: stac-geoparquet | ||
repo_name: stac-geoparquet | ||
repo_url: https://github.com/stac-utils/stac-geoparquet | ||
site_description: Convert STAC items between JSON, GeoParquet, pgstac, and Delta Lake. | ||
# Note: trailing slash recommended with mike: | ||
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#publishing-a-new-version | ||
site_url: https://stac-utils.github.io/stac-geoparquet/ | ||
docs_dir: docs | ||
|
||
extra: | ||
social: | ||
- icon: "fontawesome/brands/github" | ||
link: "https://github.com/stac-utils" | ||
version: | ||
provider: mike | ||
|
||
nav: | ||
- index.md | ||
- usage.md | ||
- Specification: spec/stac-geoparquet-spec.md | ||
- API Reference: | ||
- api/arrow.md | ||
- Legacy: api/legacy.md | ||
# - api/pgstac.md | ||
|
||
watch: | ||
- stac_geoparquet | ||
- docs | ||
|
||
theme: | ||
name: material | ||
palette: | ||
# Palette toggle for automatic mode | ||
- media: "(prefers-color-scheme)" | ||
toggle: | ||
icon: material/brightness-auto | ||
name: Switch to light mode | ||
|
||
# Palette toggle for light mode | ||
- media: "(prefers-color-scheme: light)" | ||
primary: deep purple | ||
accent: indigo | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
|
||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: deep purple | ||
accent: indigo | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
|
||
font: | ||
text: Roboto | ||
code: Roboto Mono | ||
|
||
features: | ||
- content.code.annotate | ||
- content.code.copy | ||
- navigation.indexes | ||
- navigation.instant | ||
- navigation.tracking | ||
- search.suggest | ||
- search.share | ||
|
||
plugins: | ||
- search | ||
- social | ||
- mike: | ||
alias_type: "copy" | ||
canonical_version: "latest" | ||
- mkdocstrings: | ||
enable_inventory: true | ||
handlers: | ||
python: | ||
options: | ||
docstring_section_style: list | ||
docstring_style: google | ||
line_length: 80 | ||
separate_signature: true | ||
show_root_heading: true | ||
show_signature_annotations: true | ||
show_source: false | ||
show_symbol_type_toc: true | ||
signature_crossrefs: true | ||
extensions: | ||
- griffe_inherited_docstrings | ||
|
||
import: | ||
- https://arrow.apache.org/docs/objects.inv | ||
- https://delta-io.github.io/delta-rs/objects.inv | ||
- https://docs.python.org/3/objects.inv | ||
- https://geoarrow.github.io/geoarrow-rs/python/latest/objects.inv | ||
- https://geopandas.org/en/stable/objects.inv | ||
- https://numpy.org/doc/stable/objects.inv | ||
- https://pandas.pydata.org/pandas-docs/stable/objects.inv | ||
- https://pystac.readthedocs.io/en/stable/objects.inv | ||
- https://shapely.readthedocs.io/en/stable/objects.inv | ||
|
||
# https://github.com/developmentseed/titiler/blob/50934c929cca2fa8d3c408d239015f8da429c6a8/docs/mkdocs.yml#L115-L140 | ||
markdown_extensions: | ||
- admonition | ||
- attr_list | ||
- codehilite: | ||
guess_lang: false | ||
- def_list | ||
- footnotes | ||
- md_in_html | ||
- pymdownx.arithmatex | ||
- pymdownx.betterem | ||
- pymdownx.caret: | ||
insert: false | ||
- pymdownx.details | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
- pymdownx.escapeall: | ||
hardbreak: true | ||
nbsp: true | ||
- pymdownx.magiclink: | ||
hide_protocol: true | ||
repo_url_shortener: true | ||
- pymdownx.smartsymbols | ||
- pymdownx.superfences | ||
- pymdownx.tasklist: | ||
custom_checkbox: true | ||
- pymdownx.tilde | ||
- toc: | ||
permalink: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.