Skip to content

Commit a53bc75

Browse files
committed
refactor docs
1 parent e4da46c commit a53bc75

File tree

6 files changed

+28
-46
lines changed

6 files changed

+28
-46
lines changed

.github/workflows/cicd.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,18 @@ jobs:
4646
test-docs:
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@v5
49+
- name: Checkout main
50+
uses: actions/checkout@v5
51+
52+
- name: Install uv
53+
uses: astral-sh/setup-uv@v3
54+
with:
55+
version: "0.9.*"
56+
enable-cache: true
57+
58+
- name: Set up Python3
59+
run: uv python install 3
60+
5061
- name: Test generating docs
5162
run: make docs
5263

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ This repo is set to use `pre-commit` to run *ruff*, *pydocstring* and mypy when
1616

1717
```bash
1818
uv run pre-commit install
19+
20+
# If needed, you can run pre-commit script manually
21+
uv run pre-commit run --all-files
1922
```
2023

2124
### Docs

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ WORKDIR /app
1717
COPY . /app
1818

1919
RUN python -m pip install \
20-
-e ./stac_fastapi/types[dev] \
21-
-e ./stac_fastapi/api[dev] \
22-
-e ./stac_fastapi/extensions[dev]
20+
-e ./stac_fastapi/types \
21+
-e ./stac_fastapi/api \
22+
-e ./stac_fastapi/extensions

Dockerfile.docs

Lines changed: 0 additions & 19 deletions
This file was deleted.

Makefile

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ image:
44

55
.PHONY: install
66
install:
7-
python -m pip install wheel && \
8-
python -m pip install -e ./stac_fastapi/types[dev] && \
9-
python -m pip install -e ./stac_fastapi/api[dev] && \
10-
python -m pip install -e ./stac_fastapi/extensions[dev]
7+
uv sync --all-extras
118

12-
.PHONY: docs-image
13-
docs-image:
14-
docker compose -f compose.docs.yml \
15-
build
9+
.PHONY: test
10+
test: install
11+
uv run pytest
1612

1713
.PHONY: docs
18-
docs: docs-image
19-
docker compose -f compose.docs.yml \
20-
run docs
14+
docs: install
15+
uv run pip install -r requirements/requirements-docs.txt && \
16+
uv run mkdocs build -f docs/mkdocs.yml
2117

22-
.PHONY: test
23-
test: image
24-
python -m pytest .
18+
.PHONY: benchmark
19+
benchmark: install
20+
uv run pytest stac_fastapi/api/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median'

compose.docs.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)