Skip to content

Commit 304a741

Browse files
committed
use uvx
1 parent a53bc75 commit 304a741

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

.github/workflows/cicd.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ jobs:
5858
- name: Set up Python3
5959
run: uv python install 3
6060

61-
- name: Test generating docs
62-
run: make docs
61+
- name: Test docs
62+
run: |
63+
uvx --with-requirements requirements/requirements-docs.txt mkdocs build --strict -f docs/mkdocs.yml
6364
6465
benchmark:
6566
needs: [test]

.github/workflows/deploy_mkdocs.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,5 @@ jobs:
2929
- name: Set up Python3
3030
run: uv python install 3
3131

32-
- name: Install dependencies
33-
run: |
34-
uv sync --all-extras
35-
36-
- name: Install dependencies
37-
run: |
38-
uv run pip install -r requirements/requirements-docs.txt
39-
4032
- name: Deploy docs
41-
run: uv run mkdocs gh-deploy --force -f docs/mkdocs.yml
33+
run: uvx --with-requirements requirements/requirements-docs.txt mkdocs gh-deploy --force -f docs/mkdocs.yml

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,20 @@ uv run pre-commit run --all-files
2626
```bash
2727
git clone https://github.com/stac-utils/stac-fastapi.git
2828
cd stac-fastapi
29-
uv pip instal -r requirements/requirements-docs.txt
29+
# Build docs
30+
uvx --with-requirements requirements/requirements-docs.txt mkdocs build -f docs/mkdocs.yml
3031
```
3132

3233
Hot-reloading docs:
3334

3435
```bash
35-
uv run mkdocs serve -f docs/mkdocs.yml
36+
uvx --with-requirements requirements/requirements-docs.txt mkdocs serve -f docs/mkdocs.yml --livereload
3637
```
3738

3839
To manually deploy docs (note you should never need to do this because GitHub
3940
Actions deploys automatically for new commits.):
4041

4142
```bash
4243
# deploy
43-
uv run mkdocs gh-deploy -f docs/mkdocs.yml
44+
uvx --with-requirements requirements/requirements-docs.txt mkdocs gh-deploy -f docs/mkdocs.yml
4445
```

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ test: install
1111
uv run pytest
1212

1313
.PHONY: docs
14-
docs: install
15-
uv run pip install -r requirements/requirements-docs.txt && \
16-
uv run mkdocs build -f docs/mkdocs.yml
14+
docs:
15+
uvx --with-requirements requirements/requirements-docs.txt mkdocs build -f docs/mkdocs.yml
1716

1817
.PHONY: benchmark
1918
benchmark: install

requirements/requirements-docs.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ mkdocs>=1.4.3
33
mkdocs-jupyter>=0.24.5
44
mkdocs-material[imaging]>=9.5
55
griffe-inherited-docstrings>=1.0.0
6-
mkdocstrings[python]>=0.25.1
6+
mkdocstrings[python]>=0.25.1
7+
8+
-e stac_fastapi/types
9+
-e stac_fastapi/api
10+
-e stac_fastapi/extensions

0 commit comments

Comments
 (0)