Skip to content

Commit 96c71f7

Browse files
committed
Improve developer documentation (#1908)
## Enhancement - Publish detailed developer documentation via GitHub Pages [imicknl.github.io/python-overkiz-api](https://imicknl.github.io/python-overkiz-api/). Fixes #190, #1522
1 parent 41bb7ad commit 96c71f7

21 files changed

Lines changed: 1110 additions & 640 deletions

.github/workflows/docs.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: docs
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
pull_request:
8+
paths:
9+
- docs/**
10+
- mkdocs.yml
11+
- pyproject.toml
12+
- README.md
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.11"
28+
29+
- name: Set up uv
30+
uses: astral-sh/setup-uv@v3
31+
32+
- name: Install docs dependencies
33+
run: uv sync --all-extras --dev
34+
35+
- name: Build site
36+
run: uv run mkdocs build
37+
38+
- name: Upload Pages artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: site
42+
43+
deploy:
44+
if: github.event_name == 'release'
45+
needs: build
46+
runs-on: ubuntu-latest
47+
permissions:
48+
pages: write
49+
id-token: write
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
1818
- id: check-json
19-
exclude: .devcontainer
19+
exclude: .devcontainer|.vscode
2020
- id: check-yaml
2121
- id: check-added-large-files
2222
- id: no-commit-to-branch

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Docs: Serve (development)",
8+
"type": "shell",
9+
"command": "uv run mkdocs serve"
10+
},
11+
{
12+
"label": "Docs: Build",
13+
"type": "shell",
14+
"command": "uv run mkdocs build --clean"
15+
},
16+
]
17+
}

docs/api-reference.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
::: pyoverkiz.client.OverkizClient
2+
3+
::: pyoverkiz.models
4+
options:
5+
show_source: false
6+
7+
::: pyoverkiz.enums
8+
options:
9+
show_source: false
10+
11+
::: pyoverkiz.exceptions
12+
options:
13+
show_source: false
File renamed without changes.

0 commit comments

Comments
 (0)