File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ Install the package:
172
172
pip install --index-url https://test.pypi.org/simple/ --no-deps python_cli_template
173
173
```
174
174
175
+ Generate [ docs] ( https://pdoc.dev/ ) :
176
+
177
+ ``` sh
178
+ pdoc src/python_cli_template/
179
+ ```
180
+
175
181
## Release
176
182
177
183
Release and publish are automated with [ Release Please] ( https://github.com/googleapis/release-please ) .
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: build
2
2
on : [push, pull_request]
3
3
4
4
permissions :
5
- contents : read
5
+ contents : write
6
6
7
7
jobs :
8
8
build :
22
22
23
23
- name : Generate packages
24
24
run : python3 -m build
25
+
26
+ - name : Build docs
27
+ run : pdoc src/python_cli_template/ -o docs
28
+
29
+ - name : Deploy
30
+ if : github.ref_name == 'master'
31
+ uses : remarkablemark/gitploy-action@v1
32
+ with :
33
+ directory : docs
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ python_cli_template = "python_cli_template.cli:main"
24
24
[project .optional-dependencies ]
25
25
build = [
26
26
" build==1.2.2.post1" ,
27
+ " pdoc==15.0.1" ,
27
28
" twine==6.1.0" ,
28
29
]
29
30
test = [
Original file line number Diff line number Diff line change 1
- """Python CLI Template"""
1
+ """
2
+ Python CLI Template
3
+
4
+ .. include:: ../../README.md
5
+ """
2
6
3
7
from .template import hello
4
8
You can’t perform that action at this time.
0 commit comments