Skip to content

Commit 71072c8

Browse files
committed
doc: add documentation
1 parent 9bca02c commit 71072c8

8 files changed

Lines changed: 2199 additions & 1791 deletions

File tree

docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
hide:
3+
- navigation
4+
- toc
5+
---
6+
7+
8+
# Data Sync Scripts
9+
10+
::: mkdocs-typer2
11+
:module: datasync.main
12+
:name: datasync
13+
:pretty: true

mkdocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
site_name: Miljødata Data Sync
2+
theme:
3+
name: material
4+
palette:
5+
primary: teal
6+
accent: amber
7+
8+
plugins:
9+
- search
10+
- mkdocs-typer2:
11+
pretty: true
12+
13+
watch:
14+
- docs
15+
- src

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ build-backend = "hatchling.build"
33
requires = ["hatchling"]
44

55
[dependency-groups]
6-
dev = ["deptry"]
6+
dev = [
7+
"deptry",
8+
"mkdocs>=1.6.1",
9+
"mkdocs-material>=9.7.1",
10+
"mkdocs-typer2>=0.1.6"
11+
]
712

813
[project]
914
authors = [{name = "ninanor", email = "niccolo.cantu@nina.no"}]

src/datasync/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
from . import dms, ninagen, nva, pit_registering_salmon, ubw
88

9-
app = typer.Typer()
9+
app = typer.Typer(
10+
help="Provide subcommands for synchronizing different resources, see subcommands"
11+
)
1012
app.add_typer(nva.app, name="nva")
1113
app.add_typer(ubw.app, name="ubw")
1214
app.add_typer(dms.app, name="dms")

src/datasync/ninagen/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import typer
22

3-
app = typer.Typer()
3+
app = typer.Typer(help="Commands to handle NINAGEN tasks")

src/datasync/nva.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
NVA_REGION = env("NVA_REGION", default="us-east-1")
2424
CRISTIN_DB_PATH = env("CRISTIN_DB_PATH", default="")
2525

26-
app = typer.Typer()
26+
app = typer.Typer(help="export NVA APIs to Parquet on a S3 Bucket")
2727

2828

2929
def get_funding_sources(client: RESTClient):

src/datasync/ubw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
log,
1010
)
1111

12-
app = typer.Typer()
12+
app = typer.Typer(help="Export UBW APIs to Parquet in S3 bucket")
1313

1414
UBW_BASE_URL = env("UBW_BASE_URL", default="")
1515
UBW_BASIC_AUTH = env("UBW_BASIC_AUTH", default="")

uv.lock

Lines changed: 2159 additions & 1786 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)