File tree Expand file tree Collapse file tree 8 files changed +520
-9
lines changed Expand file tree Collapse file tree 8 files changed +520
-9
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ site_name : Victor OpenAI Example
2
+ theme :
3
+ name : material
4
+
5
+ nav :
6
+ - Home : index.md
7
+
8
+
Original file line number Diff line number Diff line change @@ -5,3 +5,16 @@ description = "Add your description here"
5
5
readme = " README.md"
6
6
requires-python = " >=3.12"
7
7
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" ]
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments