Skip to content

Commit d040913

Browse files
switch to mkdocstring (#223)
1 parent 776999f commit d040913

File tree

22 files changed

+90
-45
lines changed

22 files changed

+90
-45
lines changed

.github/workflows/cicd.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,5 @@ jobs:
119119
python -m pip install --upgrade pip
120120
python -m pip install .[docs,dev,server]
121121
122-
- name: Generate API docs
123-
run: make docs
124-
125122
- name: Build documentation
126123
run: mkdocs build --strict

.github/workflows/pages.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,6 @@ jobs:
3535
run: |
3636
python -m pip install --upgrade pip
3737
python -m pip install -e .[docs]
38-
- name: Update API docs
39-
run: |
40-
pdocs as_markdown \
41-
--output_dir docs/api/ \
42-
--exclude_source \
43-
--overwrite \
44-
stac_fastapi.pgstac
45-
env:
46-
POSTGRES_USER: username
47-
POSTGRES_PASS: password
48-
POSTGRES_DBNAME: postgis
49-
POSTGRES_HOST: localhost
50-
POSTGRES_PORT: 5432
51-
POSTGRES_HOST_READER: localhost
52-
POSTGRES_HOST_WRITER: localhost
5338
- name: Build docs
5439
run: mkdocs build --site-dir site
5540
- name: Upload artifact

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,11 @@ celerybeat-schedule
121121
# skaffold temporary build/deploy files
122122
build.out
123123

124-
# pdocs
125-
docs/api/*
126-
127124
# Direnv
128125
.envrc
129126

130127
# Virtualenv
131128
venv
132129

133130
# IDE
134-
.vscode
131+
.vscode

Dockerfile.docs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ FROM python:3.10-slim
44
RUN apt update && apt install -y build-essential
55

66
RUN python -m pip install --upgrade pip
7-
RUN python -m pip install mkdocs mkdocs-material pdocs
87

98
COPY . /opt/src
109

1110
WORKDIR /opt/src
1211

13-
RUN python -m pip install .
12+
RUN python -m pip install ".[docs]"
1413

15-
CMD ["pdocs", \
16-
"as_markdown", \
17-
"--output_dir", \
18-
"docs/api/", \
19-
"--exclude_source", \
20-
"--overwrite", \
21-
"stac_fastapi.pgstac"]
14+
CMD ["mkdocs", "build"]

docker-compose.docs.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,5 @@ services:
77
context: .
88
dockerfile: Dockerfile.docs
99
platform: linux/amd64
10-
environment:
11-
- POSTGRES_USER=username
12-
- POSTGRES_PASS=password
13-
- POSTGRES_DBNAME=postgis
14-
- POSTGRES_HOST_READER=database
15-
- POSTGRES_HOST_WRITER=database
16-
- POSTGRES_PORT=5432
1710
volumes:
1811
- .:/opt/src

docs/api/stac_fastapi/pgstac/app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: stac_fastapi.pgstac.app
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
::: stac_fastapi.pgstac.config
2+
options:
3+
show_source: true

docs/api/stac_fastapi/pgstac/core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: stac_fastapi.pgstac.core

docs/api/stac_fastapi/pgstac/db.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
::: stac_fastapi.pgstac.db
2+
options:
3+
show_source: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: stac_fastapi.pgstac.extensions.filter

0 commit comments

Comments
 (0)