Skip to content

Commit 5eedf64

Browse files
committed
Merge branch 'master' of https://github.com/developmentseed/tifeatures into Queryables
2 parents 4dec594 + 0bc887b commit 5eedf64

File tree

13 files changed

+506
-7
lines changed

13 files changed

+506
-7
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
2+
TIFEATURES_NAME="OGC Feature API"
13
DATABASE_URL=postgresql://username:[email protected]:5439/postgis
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish docs via GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
# Only rebuild website when docs have changed
9+
- 'README.md'
10+
- 'CHANGES.md'
11+
- 'CONTRIBUTING.md'
12+
- 'docs/**'
13+
14+
jobs:
15+
build:
16+
name: Deploy docs
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout master
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Python 3.8
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.8
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install -e .["docs"]
31+
32+
- name: Create API docs
33+
env:
34+
# we need to set a fake PG url or import will fail
35+
DATABASE_URL: postgresql://username:[email protected]:5439/postgis
36+
run: |
37+
pdocs as_markdown \
38+
--output_dir docs/src/api \
39+
--exclude_source \
40+
--overwrite \
41+
tifeatures.filter.evaluate \
42+
tifeatures.filter.filters \
43+
tifeatures.resources.enums \
44+
tifeatures.resources.response \
45+
tifeatures.db \
46+
tifeatures.dbmodel \
47+
tifeatures.dependencies \
48+
tifeatures.errors \
49+
tifeatures.factory \
50+
tifeatures.layer \
51+
tifeatures.middleware \
52+
tifeatures.model \
53+
tifeatures.settings
54+
55+
- name: Deploy docs
56+
run: mkdocs gh-deploy --force -f docs/mkdocs.yml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ cdk.out/
108108
benchmark/
109109

110110
.pgdata/
111+
docs/src/api/*

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<p align="center">
22
<img width="500" src="https://user-images.githubusercontent.com/10407788/172736520-18da1910-87ac-41a9-b6f0-6c6ae503bd5e.png"/>
3-
<p align="center">Simple and Fast Geospatial Feature Server for PostGIS.</p>
3+
<p align="center">Simple and Fast Geospatial Features API for PostGIS.</p>
44
</p>
5-
65
<p align="center">
76
<a href="https://github.com/developmentseed/tifeatures/actions?query=workflow%3ACI" target="_blank">
87
<img src="https://github.com/developmentseed/tifeatures/workflows/CI/badge.svg" alt="Test">
@@ -18,11 +17,12 @@
1817

1918
---
2019

20+
**Documentation**: <a href="https://developmentseed.org/tifeatures/" target="_blank">https://developmentseed.org/tifeatures/</a>
21+
2122
**Source Code**: <a href="https://github.com/developmentseed/tifeatures" target="_blank">https://github.com/developmentseed/tifeatures</a>
2223

2324
---
2425

25-
2626
## Install
2727

2828
```bash
@@ -36,6 +36,8 @@ $ python -m pip install -e . # or .["all"] to install optional dependencies
3636
```bash
3737
$ pip install uvicorn
3838

39+
# Set you postgis database instance URL in the environment
40+
$ export DATABASE_URL=postgresql://username:[email protected]:5432/postgis
3941
$ uvicorn tifeatures.main:app
4042
```
4143

@@ -52,6 +54,14 @@ Example of `.env` file can be found in [.env.example](https://github.com/develop
5254
DATABASE_URL=postgresql://username:[email protected]:5432/postgis
5355
```
5456

57+
## OGC Specification
58+
59+
Specification | Status | link |
60+
| -- | -- | -- |
61+
Part 1: Core | ✅ | https://docs.ogc.org/is/17-069r4/17-069r4.html
62+
Part 2: CRS by Reference | ❌ | https://docs.ogc.org/is/18-058r1/18-058r1.html
63+
Part 3: Filtering / CQL2 | ✅ | https://docs.ogc.org/DRAFTS/19-079r1.html
64+
5565
## Contribution & Development
5666

5767
See [CONTRIBUTING.md](https://github.com/developmentseed/tifeatures/blob/master/CONTRIBUTING.md)

docs/mkdocs.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
site_name: tifeatures
2+
site_description: Simple and Fast Geospatial OGC Features API for PostGIS.
3+
4+
docs_dir: 'src'
5+
site_dir: 'build'
6+
7+
repo_name: "developmentseed/tifeatures"
8+
repo_url: "https://github.com/developmentseed/tifeatures"
9+
10+
extra:
11+
social:
12+
- icon: "fontawesome/brands/github"
13+
link: "https://github.com/developmentseed"
14+
- icon: "fontawesome/brands/twitter"
15+
link: "https://twitter.com/developmentseed"
16+
- icon: "fontawesome/brands/medium"
17+
link: "https://medium.com/devseed"
18+
19+
nav:
20+
- TiFeatures: "index.md"
21+
- Tutorial - User Guide:
22+
- "Endpoints": endpoints.md
23+
- API:
24+
- db: api/tifeatures/db.md
25+
- dbmodel: api/tifeatures/dbmodel.md
26+
- dependencies: api/tifeatures/dependencies.md
27+
- errors: api/tifeatures/errors.md
28+
- factory: api/tifeatures/factory.md
29+
- layer: api/tifeatures/layer.md
30+
- middleware: api/tifeatures/middleware.md
31+
- model: api/tifeatures/model.md
32+
- settings: api/tifeatures/settings.md
33+
- resources:
34+
- enums: api/tifeatures/resources/enums.md
35+
- response: api/tifeatures/resources/response.md
36+
- filters:
37+
- evaluate: api/tifeatures/filter/evaluate.md
38+
- filters: api/tifeatures/filter/filters.md
39+
- Development - Contributing: "contributing.md"
40+
- Release Notes: "release-notes.md"
41+
42+
plugins:
43+
- search
44+
45+
theme:
46+
name: material
47+
palette:
48+
primary: indigo
49+
scheme: default
50+
favicon: img/favicon.ico
51+
52+
markdown_extensions:
53+
- admonition
54+
- attr_list
55+
- codehilite:
56+
guess_lang: false
57+
- def_list
58+
- footnotes
59+
- pymdownx.arithmatex
60+
- pymdownx.betterem
61+
- pymdownx.caret:
62+
insert: false
63+
- pymdownx.details
64+
- pymdownx.emoji
65+
- pymdownx.escapeall:
66+
hardbreak: true
67+
nbsp: true
68+
- pymdownx.magiclink:
69+
hide_protocol: true
70+
repo_url_shortener: true
71+
- pymdownx.smartsymbols
72+
- pymdownx.superfences
73+
- pymdownx.tasklist:
74+
custom_checkbox: true
75+
- pymdownx.tilde
76+
- toc:
77+
permalink: true

docs/src/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CONTRIBUTING.md

0 commit comments

Comments
 (0)