Skip to content

Commit 1eea78f

Browse files
committed
rev
1 parent 1dc80c7 commit 1eea78f

File tree

8 files changed

+520
-9
lines changed

8 files changed

+520
-9
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy docs
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write # This allows pushing to gh-pages
11+
12+
jobs:
13+
deploy_docs:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Setup uv
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
enable-cache: true
22+
- name: Install dependencies
23+
run: make sync
24+
- name: Deploy docs
25+
run: make deploy-docs

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: sync build-docs serve-docs deploy-docs
2+
3+
sync:
4+
uv sync -q
5+
6+
build-docs:
7+
uv run mkdocs build
8+
9+
serve-docs:
10+
uv run mkdocs serve
11+
12+
deploy-docs: build-docs
13+
@echo "Docs built. Upload step goes here (GitHub Pages action can handle deploy)."
14+
15+

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Victor OpenAI Example
2+
3+
This is a minimal Python package used to exercise CI.
4+
5+
Example usage:
6+
7+
```python
8+
from victor_openai_example import Example
9+
10+
print(Example("World").greet())
11+
```

main.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

mkdocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
site_name: Victor OpenAI Example
2+
theme:
3+
name: material
4+
5+
nav:
6+
- Home: index.md
7+
8+

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,16 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = []
8+
9+
[dependency-groups]
10+
dev = [
11+
"mkdocs",
12+
"mkdocs-material",
13+
]
14+
15+
[build-system]
16+
requires = ["setuptools", "wheel"]
17+
build-backend = "setuptools.build_meta"
18+
19+
[tool.setuptools]
20+
packages = ["victor_openai_example"]

uv.lock

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

victor_openai_example/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Example:
2+
"""A minimal example class exported by the package."""
3+
4+
def __init__(self, name: str) -> None:
5+
self.name = name
6+
7+
def greet(self) -> str:
8+
return f"Hello, {self.name}!"
9+
10+
__all__ = ["Example"]
11+
12+

0 commit comments

Comments
 (0)