Skip to content

Commit ea79bd8

Browse files
committed
Docs
1 parent 64f9137 commit ea79bd8

4 files changed

Lines changed: 158 additions & 23 deletions

File tree

.github/workflows/docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: website
2+
on:
3+
pull_request: # TODO: only on main
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install uv and set the python version
13+
uses: astral-sh/setup-uv@v6
14+
with:
15+
python-version: 3.9
16+
enable-cache: true
17+
- name: Install Poe
18+
run: uv tool install poethepoet
19+
- name: run pdoc
20+
run: poe doc --ci
21+
- uses: actions/upload-pages-artifact@v3
22+
with:
23+
path: docs/
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
permissions:
29+
pages: write
30+
id-token: write
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
steps:
35+
- id: deployment
36+
uses: actions/deploy-pages@v4

azure-kusto-data/tests/__init__.py

Whitespace-only changes.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ dev = [
2323
"aioresponses>=0.7.8",
2424
"asgiref>=3.9.1",
2525
"pandas>=2.3.1",
26-
"ruff>=0.12.8",
26+
"ruff>=0.12.9",
27+
"pdoc>=15.0.4",
2728
]
2829

2930
[tool.uv.workspace]
@@ -54,6 +55,7 @@ pythonpath = ["."]
5455
envfile = ".env"
5556

5657
[tool.poe.tasks]
58+
doc = {cmd = "uv run pdoc ./azure-kusto-data/azure ./azure-kusto-ingest/azure ${CI:+ -o ./docs}", args = { CI = { help = "Run in CI mode", type = "boolean", options = ["--ci"] } } }
5759
sync = "uv sync --all-packages --all-extras --dev --locked"
5860
build = "uv build --all-packages"
5961
format = "ruff format"

0 commit comments

Comments
 (0)