Skip to content

Commit d3263bc

Browse files
authored
feat: add docs (#9)
Pretty bare-bones for now, but you gotta start somewhere!
1 parent b447d30 commit d3263bc

File tree

9 files changed

+609
-2
lines changed

9 files changed

+609
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,19 @@ jobs:
2323
run: scripts/lint
2424
- name: Test
2525
run: uv run pytest
26+
- name: Docs
27+
run: uv run mkdocs build --strict
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: site/
31+
docs:
32+
name: Deploy docs
33+
runs-on: ubuntu-latest
34+
if: github.ref == 'refs/heads/main'
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deploy.outputs.page_url }}
38+
needs: ci
39+
steps:
40+
- id: deploy
41+
uses: actions/deploy-pages@v4

docs/img/stapi.png

246 KB
Loading

docs/index.md

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

docs/stapi-pydantic/api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API
2+
3+
::: stapi_pydantic

docs/stapi-pydantic/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# stapi-pydantic
2+
3+
[Pydantic](https://docs.pydantic.dev) models for the [Satellite Tasking API (STAPI)](https://github.com/stapi-spec/) specification.
4+
5+
!!! note
6+
7+
This repository intentionally has no input/output (IO) functionality.
8+
For making requests to a STAPI API, use **pystapi-client**.

mkdocs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
site_name: pystapi
2+
site_url: https://stapi-spec.github.io/pystapi
3+
repo_url: https://github.com/stapi-spec/pystapi/
4+
repo_name: pystapi
5+
theme:
6+
name: material
7+
logo: img/stapi.png
8+
favicon: img/stapi.png
9+
features:
10+
- navigation.indexes
11+
12+
nav:
13+
- index.md
14+
- stapi-pydantic:
15+
- stapi-pydantic/index.md
16+
- stapi-pydantic/api.md
17+
18+
plugins:
19+
- mkdocstrings:
20+
default_handler: python
21+
handlers:
22+
python:
23+
options:
24+
show_if_no_docstring: true
25+
show_submodules: true
26+
inventories:
27+
- https://docs.python.org/3/objects.inv
28+
- https://docs.pydantic.dev/latest/objects.inv
29+
30+
markdown_extensions:
31+
- admonition
32+
- pymdownx.superfences:
33+
custom_fences:
34+
- name: mermaid
35+
class: mermaid
36+
format: !!python/name:pymdownx.superfences.fence_code_format

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ description = "Monorepo for Satellite Tasking API (STAPI) Specification Python p
55
readme = "README.md"
66
requires-python = ">=3.10"
77
dependencies = [
8-
"stapi-pydantic"
8+
"mkdocstrings-python>=1.16.8",
9+
"stapi-pydantic",
910
]
1011

1112
[dependency-groups]
@@ -14,6 +15,12 @@ dev = [
1415
"pytest>=8.3.5",
1516
"ruff>=0.11.2",
1617
]
18+
docs = [
19+
"mkdocs-material>=9.6.11",
20+
]
21+
22+
[tool.uv]
23+
default-groups = ["dev", "docs"]
1724

1825
[tool.uv.workspace]
1926
members = ["stapi-pydantic"]

stapi-pydantic/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
# stapi-pydantic
2+
3+
[Pydantic](https://docs.pydantic.dev) models for the [Satellite Tasking API (STAPI)](https://github.com/stapi-spec/) specification.
4+
5+
> [!NOTE]
6+
> This repository intentionally has no input/output (IO) functionality.
7+
> For making requests to a STAPI API, use **pystapi-client**.

uv.lock

Lines changed: 531 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)