Skip to content

Commit bbab3f3

Browse files
committed
feat: docs generation
1 parent 531e56d commit bbab3f3

File tree

4 files changed

+649
-1
lines changed

4 files changed

+649
-1
lines changed

.github/workflows/update-docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Regenerate API Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/**'
9+
- 'pyproject.toml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
build-docs:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.12'
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install .[dev]
33+
34+
- name: Regenerate Markdown API docs
35+
run: |
36+
mkdir -p docs
37+
pydoc-markdown
38+
39+
- name: Commit updated docs
40+
uses: stefanzweifel/git-auto-commit-action@v5
41+
with:
42+
commit_message: "chore(docs): update generated API docs"
43+
file_pattern: docs/*.md

0 commit comments

Comments
 (0)