Skip to content

Commit

Permalink
add API docs (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago authored Feb 12, 2021
1 parent e592e04 commit f2821b9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy_mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ jobs:
python -m pip install --upgrade pip
python -m pip install numpy
python -m pip install -e .["docs"]
python -m pip install git+https://github.com/timothycrosley/pdocs
- name: update API docs
run: |
pdocs as_markdown \
--output_dir docs/api/ \
--exclude_source \
--overwrite \
titiler.dependencies \
titiler.endpoints.factory \
titiler.middleware \
titiler.utils \
titiler.resources.enums
- name: Deploy docs
run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ ENV/

cdk.out/
deployment/k8s/titiler/values-test.yaml
docs/api
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ Actions deploys automatically for new commits.):
```bash
$ mkdocs gh-deploy
```

```bash
pdocs as_markdown \
--output_dir docs/api/ \
--exclude_source \
--overwrite \
titiler.dependencies \
titiler.endpoints.factory \
titiler.middleware \
titiler.utils \
titiler.resources.enums
```
7 changes: 7 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ nav:
- Custom Sentinel 2 Tiler: "examples/Create_CustomSentinel2Tiler.ipynb"
- NumpyTile: "examples/Working_with_NumpyTile.ipynb"

- API:
- dependencies: api/titiler/dependencies.md
- factory: api/titiler/endpoints/factory.md
- middleware: api/titiler/middleware.md
- utils: api/titiler/utils.md
- enums: api/titiler/resources/enums.md

- Deployment:
- Amazon Web Services:
- Intro: "deployment/aws/intro.md"
Expand Down

0 comments on commit f2821b9

Please sign in to comment.